anonymous wrote : 1) The default value with be '0'. How does the 
entitymanager.merge differentiate between '0' default and a debtor.setId(0)? 

I don't know.  Pretty sure I've never had a row with a PK of 0.  But I haven't 
looked into the implementation code to see how Hibernate handles this case 
specifically.

As a general rule, I DO use the wrapper classes (ie. Long and Integer) for IDs 
so that I have the ability to specify "null".

S,
ALR

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982284#3982284

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982284
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to