What is meant by a Named SQL Query in hibernate and how it’s used?



What is meant by a Named SQL Query in hibernate and how it’s used?..

Answer / Mudit Kumar Saxena

A Named SQL Query in Hibernate is a precompiled SQL query that can be reused across multiple sessions. It's defined using the @NamedNativeQuery or @NamedQuery annotations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Explain the query object in hibernate?

1 Answers  


What are the limitations of hibernate?

1 Answers  


List hibernate session interface methods?

1 Answers  


Which class elements are not persisted?

1 Answers  


How do you hibernate?

1 Answers  


Difference between save() and saveorupdate() in hibernate?

1 Answers  


What hibernate save returns?

1 Answers  


What is stateless session in hibernate?

1 Answers  


What is the difference between hibernate session get() and load() method?

1 Answers  


What are the Collection types in Hibernate?

1 Answers  


What is the default fetch type in hibernate?

1 Answers  


How do you map java objects with database tables?

1 Answers  


Categories