What is implicit polymorphism in hibernate?



What is implicit polymorphism in hibernate?..

Answer / Navneet Mishra

Implicit polymorphism in Hibernate occurs when a persistent class inherits from another persistent class and you want to load instances of the child class using a query that could potentially return instances of the parent class as well. When this happens, Hibernate will perform the appropriate type conversion automatically.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

How can we reattach any detached objects in Hibernate?

1 Answers  


How many strategies are there in hibernate inheritance?

1 Answers  


Which annotation is used to auto generate primary key?

1 Answers  


What is one-to-one association in hibernate?

1 Answers  


Is orm faster than sql?

1 Answers  


What is the difference between jpa and hibernate?

1 Answers  


What is orm and its advantages?

1 Answers  


Which one is faster jdbc or hibernate?

1 Answers  


Can we have multiple sessionfactory in hibernate?

1 Answers  


Describe the method used to create an hql query and sql query?

1 Answers  


What is named sql query in hibernate?

1 Answers  


Is it possible to perform collection mapping with one-to-one and many-to-one?

1 Answers  


Categories