From noreply at atlassian.com Thu Jul 15 04:56:14 2010 Content-Type: multipart/mixed; boundary="===============2249654546158161161==" MIME-Version: 1.0 From: Rolf Thunbo (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Created: (JPA-1) many-to-one id="true" is not picked up by hibernate in orm.xml Date: Thu, 15 Jul 2010 03:56:13 -0500 Message-ID: <810029834.1550.1279184173899.JavaMail.j2ee-opensource-projects@vps07.contegix.com> --===============2249654546158161161== 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: JPA-1 URL: http://opensource.atlassian.com/projects/hibernate/br= owse/JPA-1 Project: Java Persistence API Issue Type: Bug 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 --===============2249654546158161161==--