[jboss-user] [EJB 3.0] - Re: EJB3 PersistanceManager confusion

ALRubinger do-not-reply at jboss.com
Wed Nov 1 00:45:18 EST 2006


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



More information about the jboss-user mailing list