What do you mean by named – sql query?



What do you mean by named – sql query?..

Answer / Pratibha Yadav

In Hibernate, a Named SQL Query is a precompiled SQL statement that can be reused multiple times within the Session scope. It is defined using the @NamedNativeQuery or @NamedQuery annotation in entity classes, and they can be executed using Query API. These queries are useful when you need to execute non-HQL specific SQL statements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

List the key components of hibernate.

1 Answers  


What are the important interfaces in hibernate?

1 Answers  


How can we get hibernate statistics?

1 Answers  


What is a unidirectional relationship?

1 Answers  


What is a hibernate template class?

1 Answers  


How to get single column from database using hibernate?

1 Answers  


Define a way to add hibernate mapping file in hibernate configuration file?

1 Answers  


What are the different functionalities supported by hibernate?

1 Answers  


What is bootstrap in hibernate?

1 Answers  


What is Java Persistence API (JPA)?

1 Answers  


How to integrate Hibernate and Spring frameworks?

1 Answers  


Is orphanremoval true?

1 Answers  


Categories