What is lazy true in hibernate?
Answer / Gaurav Saxena
In Hibernate, 'lazy=true' indicates that a relationship or property should be loaded on demand (i.e., when the associated data is actually needed), rather than being fetched immediately upon entity loading. This can help improve performance by reducing the amount of data initially loaded from the database.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is it possible to perform collection mapping with one-to-one and many-to-one?
How to write native sql query in hibernate?
How transaction management works in Hibernate?
Name some important interfaces of Hibernate framework?
What is the use of ehcache?
Is merge better than update?
What is hibernate 2nd level cache?
What are the states of object in hibernate?
How to achieve mapping in hibernate?
What is cascade in hibernate in which scenario we use it?
How to write composite key mapping for hibernate?
Explain the difference between criteria and criterion in hibernate?