• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Strange annotation - @EmbeddableSuperClass

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic