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 |
List the key components of hibernate.
What are the important interfaces in hibernate?
How can we get hibernate statistics?
What is a unidirectional relationship?
What is a hibernate template class?
How to get single column from database using hibernate?
Define a way to add hibernate mapping file in hibernate configuration file?
What are the different functionalities supported by hibernate?
What is bootstrap in hibernate?
What is Java Persistence API (JPA)?
How to integrate Hibernate and Spring frameworks?
Is orphanremoval true?