From noreply at atlassian.com Thu Jul 22 03:32:36 2010 Content-Type: multipart/mixed; boundary="===============3812896488288163308==" 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> --===============3812896488288163308== 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 --===============3812896488288163308==--