From gbadner at redhat.com Tue May 8 18:13:49 2018 Content-Type: multipart/mixed; boundary="===============8854935239345351481==" MIME-Version: 1.0 From: Gail Badner To: hibernate-dev at lists.jboss.org Subject: [hibernate-dev] JPA XML ORM descriptors id-class and id Date: Tue, 08 May 2018 15:13:47 -0700 Message-ID: --===============8854935239345351481== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable When an entity with an IdClass is mapped using XML ORM descriptors, Hibernate requires the Id properties to be mapped as well, as in the following example: If the elements are not included, an exception is thrown: "No identifier specified for entity: ..." Should Hibernate require the elements to be explicitly mapped, or should it be able to determine this information by reflection from the class configured by ? Regards, Gail --===============8854935239345351481==--