• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA problem with primary key class interitance hierarchie

 
Lyr Lysander
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I've implemented an Entity with a seperate primary key class as embedded-id field. My embeddable primary key inherits from a super primary key class.

My problem is that the primary key class fields of the child class are correctliy initialized, but not the "derived" fields from the super class. These fields a empty.

The table/column-mappings are defined in my persistence.xml file.

What I am missing...

Best regards
Lysander
 
snehal dave
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of InheritanceType.Joined , the values does not get inserted into child table when you are using hibernate as persistence provider. Its bug , in latest version of hibernate it might work
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic