aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Strange annotation - @EmbeddableSuperClass 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 "Strange annotation - @EmbeddableSuperClass" Watch "Strange annotation - @EmbeddableSuperClass" New topic
Author

Strange annotation - @EmbeddableSuperClass

Max Vaha
Greenhorn

Joined: Nov 27, 2007
Posts: 29
Hello dear ranchers!
I have read O'Reilly book, and then started read specs. I've found @EmbeddableSuperClass annotation in 2.1.9.3 paragraph.
Behaviour of this annotation is exactly like @MappedSuperClass, and I don't see @EmbeddableSuperClass in Java EE packages.
Could anyone explain this moment? Thanks.
Steven Young
Ranch Hand

Joined: Apr 11, 2007
Posts: 36
A quick search on the EJB specifications has this statement in EJB Persistence spec:

A.4 Changes since public draft:
Renamed EmbeddableSuperclass as MappedSuperclass.

I'd take this to mean that the EmbeddableSuperclass annotation is no longer available in Final specification, so you'll only need to know MappedSuperclass.
Max Vaha
Greenhorn

Joined: Nov 27, 2007
Posts: 29
Thanks a lot.
But I have only A1-A3 in my spec (from SCBCD links). Could you give me direct link for your spec?
Steven Young
Ranch Hand

Joined: Apr 11, 2007
Posts: 36
Hi Max,

I'm using EJB3 Persistence Version 3.0 Final Release May 2, 2006. I'm pretty sure I got it from this link which is the same as the SCBCD link:

http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html

Are you sure you're referencing the Java Persistence API PDF file ? I notice the EJB Code Specs PDF file only has appendices A1 - A3.
 
Consider Paul's rocket mass heater.
 
subject: Strange annotation - @EmbeddableSuperClass
 
Similar Threads
dynamic schema reading thru java
FetchType attribute in Entities
Lot of annotations for O/R mapping.
Reading Annotations without using instanceof
How do u specify WS-I conformance claim in WSDL