• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPA problem with primary key class interitance hierarchie

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic