Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Annotated Entity Bean Inheritance

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the setup.

I have two classes in the same package which is being scanned for annotations.

I am getting the following exception when I attempt to use



Here is what my classes look like.



Is this the proper way to inherit annotated classes?
 
Emanuel Kadziela
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use a native, auto-generated id generator if you want to use TABLE_PER_CLASS inheritance. Either change the inheritance or the pk generator.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have resolved this by changing GenerationType.AUTO to GenerationType.TABLE
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic