We're updating the issue view to help you get more done. 

composite id's defined via hbm.xml cause java.lang.IllegalArgumentException in JPA deployment

Description

When defining a composite ID using hbm.xml in a JPA deployment, defining <composite-id class="com.acme.CustomerInventoryPK" mapped="true"> causes an "java.lang.IllegalArgumentException: expecting IdClass mapping" Exception to be thrown

Please see forum discussion:

https://forum.hibernate.org/viewtopic.php?f=1&t=1030434

Environment

None

Status

Assignee

Unassigned

Reporter

John O'Hara

Labels

Components

Affects versions

4.2.8
5.2.11

Priority

Major