• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Preparation for EJB3.0

 
panki vijay
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


hi all
@Inheritance(strategy=InheritanceType.JOINED)
is working fine .But in second subclassif i am trying to use @PrimaryKeyJoinColumn(name="EMP_PK") then on error message is coming on ID that ---
An Entity subclass can't have IdClass it will result in mutiple ID's in the entity hierarchy.
need help......
class hierarchy is like this...

@Inheritance(strategy=InheritanceType.JOINED)
class A{}
class B extends A{}
@PrimaryKeyJoinColumn(name="EMP_PK")
class C extends B{}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic