How to handle "null primary key encountered" exception in eclipselink?

Posted by den-javamaniac on Stack Overflow See other posts from Stack Overflow or by den-javamaniac
Published on 2010-05-05T15:45:00Z Indexed on 2010/05/05 15:48 UTC
Read the original article Hit count: 238

Filed under:
|
|
|
|

Hi. I'm catching

... Null primary key encountered in unit of work clone ...

exception in eclipselink(2.0.2 with 2.0 jpa) literally meaning that id in my entity is <=0 (for primitive types). Though debug here states that everything's fine and I have nothing to worry about. My AS is glassfish v3. Can any one point out what may cause such behavior?

© Stack Overflow or respective owner

Related posts about java

Related posts about jee6