Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@MappedSuperClass For Non-Entity classes

 
Shannon Lal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am preparing for the EJB Certification and I am working my way through the some of books and came across the @MappedSuperclass annotation. I understand that this can be used to allow Entities to inherit from non entity classes, I also read that this is not nescessarly required. Since, the @MappedSuperclass is not required for non-entity parent classes (i.e. the base class of an Entity) when would you need to add the @MappedSuperclass

Thanks
 
Rae Burawes
Greenhorn
Posts: 5
1
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope the explanation on this link will help you. This is one of the sites that I'm visiting since I've started my preparation for JPA Certification last month.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic