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

Assignee

Unassigned

Reporter

John O'Hara

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure