• 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.
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!