From noreply at atlassian.com Thu Nov 30 17:14:05 2006 Content-Type: multipart/mixed; boundary="===============8736658169484326449==" MIME-Version: 1.0 From: Emmanuel Bernard (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-430) @ManyToOne results in default outer join eager fetch, should be lazy Date: Thu, 30 Nov 2006 16:14:04 -0600 Message-ID: <92280249.1164924844894.JavaMail.j2ee@atlassian01.managed.contegix.com> In-Reply-To: 89254774.1157128104447.JavaMail.j2ee@atlassian01.managed.contegix.com --===============8736658169484326449== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-430?pa= ge=3Dall ] = Emmanuel Bernard resolved ANN-430: ---------------------------------- Resolution: Fixed Assign To: Emmanuel Bernard > @ManyToOne results in default outer join eager fetch, should be lazy > -------------------------------------------------------------------- > > Key: ANN-430 > URL: http://opensource.atlassian.com/projects/hibernate/browse/A= NN-430 > Project: Hibernate Annotations > Type: Bug > Components: documentation > Reporter: Christian Bauer > Assignee: Emmanuel Bernard > Fix For: 3.2.1 > > > Documentation says: > > Association fetching > You have the ability to either eagerly or lazily fetch > associated entities. The fetch parameter can b= e set > to FetchType.LAZY or > FetchType.EAGER. EAGER will= try > to use an outer join select to retrieve the associated object, wh= ile > LAZY is the default and will only trigger a se= lect > when the associated object is accessed for the first time. EJBQL = also > has a fetch keyword that allows you to override > laziness when doing a particular query. This is very useful to im= prove > performance and is decided on a use case to use case basis. > > However, a simple @ManyToOne without any other attributes results in an e= ager join outer fetch. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --===============8736658169484326449==--