Composite Key in JPA / Hibernate with inherited class

后端 未结 3 1799
臣服心动
臣服心动 2021-02-04 18:12

i have a composite id defined on my class structure as below. Unfortunatly i always get a hibernate error that complains on the not found \"part2\":

\"Property of @IdCla

3条回答
  •  隐瞒了意图╮
    2021-02-04 18:55

    Actually bumped into the same problem.

    As:

    @Override
    @Id
    public getPart2() {
       return super.getPart2();
    }
    

    Does seem to work, I would deem it a bug. See https://hibernate.atlassian.net/browse/HHH-9114.

提交回复
热议问题