This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Preparation for EJB3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Preparation for EJB3.0" Watch "Preparation for EJB3.0" New topic

Preparation for EJB3.0

panki vijay

Joined: Oct 06, 2008
Posts: 10

hi all
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...

class A{}
class B extends A{}
class C extends B{}
I agree. Here's the link:
subject: Preparation for EJB3.0
Similar Threads
Table per class Support in JPA
[Solved] [Problem] Referencing two objects with OneToOne relation
why referencedColumnName element missing in Joined table startegy
How to manage empty entities and/or entities with no tables using discriminators/inheritance
Mixing inheritance strategies for multi-level inheritance in Hibernate