Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Hibernate Does hibernate support polymorphism?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
Does hibernate support polymorphism?
1 Answer(s)      a year and 5 months ago
Posted in : Hibernate


Hi,

Does hibernate support polymorphism?

thanks,


Advertisement
View Answers

April 24, 2013 at 12:46 PM


Hi,

Polymorphic means the polymorphism i.e an object that has a IS-A relation with their own type class object. Hibernate query doesn't only returns the instance of parent class, it returns the instances of subclasses also i.e a query will return all those persistent classes instance which extends that class or an interface is implemented.

Fore detail on http://www.roseindia.net/hibernate/hibernate4/hibernatePolymorphicQueries.shtml



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com