From noreply at atlassian.com Thu Jul 22 03:32:36 2010 Content-Type: multipart/mixed; boundary="===============7633106738863004397==" MIME-Version: 1.0 From: Rolf Thunbo (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Created: (HHH-5405) many-to-one id="true" is not picked up by hibernate in orm.xml Date: Thu, 22 Jul 2010 02:32:35 -0500 Message-ID: <1573088961.688.1279783955568.JavaMail.j2ee-opensource-projects@vps07.contegix.com> --===============7633106738863004397== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable many-to-one id=3D"true" is not picked up by hibernate in orm.xml -------------------------------------------------------------- Key: HHH-5405 URL: http://opensource.atlassian.com/projects/hibernate/br= owse/HHH-5405 Project: Hibernate Core Issue Type: Bug Components: metamodel Affects Versions: 3.5.2 Reporter: Rolf Thunbo When making a composite key referring to a target entity something like the= following ORM XML should be defined: ... But for some reason the id attribute is not picked up by Hibernate, and the= refore it does not interpret the relation as a primary key. A workaround is= to add a id tag referring to the same property, but it would be nice of Hi= bernate would pick up the id attribute on the many-to-one relation. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============7633106738863004397==-- From noreply at atlassian.com Fri Dec 31 16:15:05 2010 Content-Type: multipart/mixed; boundary="===============4889143398655805907==" MIME-Version: 1.0 From: David Carr (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5405) many-to-one id="true" is not picked up by hibernate in orm.xml Date: Fri, 31 Dec 2010 15:15:05 -0600 Message-ID: <467416154.440.1293830105152.JavaMail.j2ee-opensource-projects@vps07.contegix.com> In-Reply-To: 1573088961.688.1279783955568.JavaMail.j2ee-opensource-projects@vps07.contegix.com --===============4889143398655805907== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5405?pa= ge=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focus= edCommentId=3D39453#action_39453 ] = David Carr commented on HHH-5405: --------------------------------- This should be address by my upcoming patch for HHH-5800. > many-to-one id=3D"true" is not picked up by hibernate in orm.xml > -------------------------------------------------------------- > > Key: HHH-5405 > URL: http://opensource.atlassian.com/projects/hibernate/b= rowse/HHH-5405 > Project: Hibernate Core > Issue Type: Bug > Components: metamodel > Affects Versions: 3.5.2 > Reporter: Rolf Thunbo > > When making a composite key referring to a target entity something like t= he following ORM XML should be defined: > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence/orm http://j= ava.sun.com/xml/ns/persistence/orm_2_0.xsd" > version=3D"2.0"> > >
> > > ... > > > > > > > But for some reason the id attribute is not picked up by Hibernate, and t= herefore it does not interpret the relation as a primary key. A workaround = is to add a id tag referring to the same property, but it would be nice of = Hibernate would pick up the id attribute on the many-to-one relation. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============4889143398655805907==--