Uploaded image for project: 'Hibernate ORM'
  1. HHH-8851

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.8, 5.2.11
    • Fix Version/s: None
    • Component/s: hibernate-core
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      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

        Attachments

          Issue links

            Activity

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: