mnimer / dphibernate

Automatically exported from code.google.com/p/dphibernate
0 stars 0 forks source link

New Object Creation #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When a new object is created on Flex side its id is NULL but the isNew 
function in StateRepository.as is returning false.
2. And on the java side when the id of an object is null the getKey method of 
HibernateProxyDescriptor.java at line 73 tries to convert a null object to 
string and consequently throws a null object exception
3.

What is the expected output? What do you see instead?
The StateRepository.as should return isNew = true when a new object is created 
with an id = null but instead it is returning false

What version of the product are you using? On what operating system?
2.0 RC6 on windowns 7

Please provide any additional information below.

Original issue reported on code.google.com by aarijhus...@gmail.com on 6 Jun 2011 at 4:31