What is discriminator in hibernate?



What is discriminator in hibernate?..

Answer / Pushpendra Singh Thakur

The Discriminator in Hibernate is a column that helps to identify the subclass of a polymorphic entity. It's used when you have a table for a class hierarchy, and you want Hibernate to know which specific child class to instantiate.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is persistence in hibernate?

1 Answers  


What is a polymorphic association?

1 Answers  


What is a pure relational orm?

1 Answers  


Is sessionfactory singleton in hibernate?

1 Answers  


Why hibernate came into existence?

1 Answers  


How to configure second level cache in hibernate?

1 Answers  


Which is better hibernate or jpa?

1 Answers  


Does hibernate support mongodb?

1 Answers  


What are the benefits of hibernate over jdbc?

1 Answers  


Why do we need hibernate in java?

1 Answers  


What is implicit polymorphism in hibernate?

1 Answers  


What are session beans?

1 Answers  


Categories