[jboss-user] [EJB 3.0] - Re: What causes EntityExistsException?

lightbulb432 do-not-reply at jboss.com
Mon Dec 18 18:57:39 EST 2006


What qualifies as being "already persistent"? 

Does that mean an entity whose equals() test returns true, or does it look at the @Entity definition at the Id and/or @Column(unique=true) fields only? 

Also, does it drill down to the actual database layer at insertion time for tables with unique constraints but no corresponding annotation defined on the entity? Or does that come back as a different kind of error?

I haven't seen this documented anywhere, so I'm wondering...

Thanks.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994830



More information about the jboss-user mailing list