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:
<entity class="Employee"> <table name="entityobject"/> <id-class class="EmployeeId"/> <attributes> <id name="fname"/> <id name="lname"/> </attributes> </entity> If the <id> elements are not included, an exception is thrown: "No identifier specified for entity: ..." Should Hibernate require the <id> elements to be explicitly mapped, or should it be able to determine this information by reflection from the class configured by <id-class>? Regards, Gail _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev