[jboss-user] [EJB 3.0] New message: "Re: ManyToOne gives EntityNotFoundException"

Julien Kronegg do-not-reply at jboss.com
Fri Jan 29 06:36:26 EST 2010


User development,

A new message was posted in the thread "ManyToOne gives EntityNotFoundException":

http://community.jboss.org/message/522967#522967

Author  : Julien Kronegg
Profile : http://community.jboss.org/people/jkronegg

Message:
--------------------------------------------------------------
@NotFound(action=NotFoundAction.IGNORE)

When this annotation is added to a LAZY fetched @ManyToOne, Hibernate will issue two SQL queries: one for the main object, and one for the @ManyToOne. So you loose the LAZY behavior, see http://opensource.atlassian.com/projects/hibernate/browse/HHH-2753
--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/522967#522967




More information about the jboss-user mailing list