What is the benefit of native sql query support in hibernate?



What is the benefit of native sql query support in hibernate?..

Answer / Shaziya Rahman

Native SQL queries provide a way to execute custom SQL statements in Hibernate. This can be beneficial when dealing with complex or database-specific features that are not easily achievable using Hibernate's built-in APIs. However, it should be used with caution as it may bypass some of the benefits offered by Hibernate's object-relational mapping (ORM) functionality.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What are the identified limitation of hibernate?

1 Answers  


How to fetch foreign key data in hibernate?

1 Answers  


What is dirty read problem in hibernate?

1 Answers  


How create hibernate cfg xml?

1 Answers  


What is the difference between and merge and update?

1 Answers  


Explain the difference between hibernate and spring.

1 Answers  


Is hibernate framework good?

1 Answers  


What is lazy code?

1 Answers  


What different fetching strategies are of hibernate?

1 Answers  


What is named sql query in hibernate?

1 Answers  


What is mappedby attribute in hibernate?

1 Answers  


What is a native query?

1 Answers  


Categories