Does hibernate support polymorphism?

Does hibernate support polymorphism?

Hi,

Does hibernate support polymorphism?

thanks,

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

Ads









Related Tutorials/Questions & Answers:
Does hibernate support polymorphism?
Does Java support multiple inheritance?
Advertisements
Does Java support multiple Inheritance?
Does Java support multiple Inheritance?
Does Java support multiple Inheritance?
Why does Java not support operator overloading?
Object does not support proprty or method
How does getcurrentsession() method works in hibernate sessionfactory?
post method does not support this url
What is a pointer and does Java support pointers?
Hibernate 4.3 and JPA 2.1 support
Which version of Hibernate support JPA 2.1?
package org.hibernate.util does not exist
hibernate
package javax.validation does not exist
Hibernate 4.2.4 and JPA 2.1 Example
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version v6.4.0-RC5 is released. Learn to use cas-server-support-jpa-hibernate version v6.4.0-RC5 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version v6.4.0-RC6 is released. Learn to use cas-server-support-jpa-hibernate version v6.4.0-RC6 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.2.8 is released. Learn to use cas-server-support-jpa-hibernate version 6.2.8 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.1 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.1 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.2 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.2 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.3 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.3 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.4 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.4 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.5 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.5 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.6 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.6 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.7 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.7 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.7.1 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.7.1 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.7.2 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.7.2 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.7.3 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.7.3 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.3.7.4 is released. Learn to use cas-server-support-jpa-hibernate version 6.3.7.4 in Maven based Java projects
Maven dependency for org.apereo.cas - cas-server-support-jpa-hibernate version 6.4.0-RC1 is released. Learn to use cas-server-support-jpa-hibernate version 6.4.0-RC1 in Maven based Java projects

Ads