Re: [hibernate-dev] JPA XML ORM descriptors id-class and id

2018-05-09 Thread andrea boriero
For the IdClass annotation the spec states that the "The Id annotation must also be applied to the corresponding fields or properties of the entity.". So in my opinion the XML ORM should follow the same rule. On 8 May 2018 at 23:13, Gail Badner wrote: > When an entity with

[hibernate-dev] JPA XML ORM descriptors id-class and id

2018-05-08 Thread Gail Badner
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: ..."