File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MappedSuperClass annotation for the exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MappedSuperClass annotation for the exam" Watch "MappedSuperClass annotation for the exam" New topic
Author

MappedSuperClass annotation for the exam

Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
I found that the @MappedSuper annotation is used in many books, but I didn't find it on "EJB 3 in action" book. Do we need this for the exam?
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
I did find it in the book you mentioned, for example on page 291.
Cheers.
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
Raf Szczypiorski wrote:I did find it in the book you mentioned, for example on page 291.
Cheers.


Yes Raf, but I didn't find any example related to @MappedSuperClass annotation. Could you kindly provide me a simple example, please? It will be very much helpful for me.

Thanks in advance.
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Please see the JPA 1.0 specs, section 2.1.9.2. It contains detailed description and a nice example.
As a sidenote, I have just finished going through the specs (first ejb-core, then jpa) and it is a really good piece of work, everyone wanting to know this stuff would benefit greatly from it. Before this, I had read EJB3 in Action and Enterprise JavaBeans 3.0 books, but it was the specs that cleared a lot of issues for me. (I am not saying these books are bad, especially EJB3 in Action is great.. for starters).
Cheers.
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757

Many Thanks Raf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MappedSuperClass annotation for the exam
 
Similar Threads
Lot of annotations for O/R mapping.
SecondaryTable annotation
Annotation may come ???
I have some doubts, anyone could me what's wrong