Explain About the Primary Feature of Hibernate

Primary feature of hibernate is to java classes to database tables. Data query and retrieval is also possible with Hibernate. Application portability is a key feature in Hibernate it allows developers to port applications to almost all SQL databases. Hibernate is a powerful and widely-used open-source framework for Java that provides an object-relational mapping (ORM) solution. … Read more

Explain About Hibernate

Hibernate solves problems such as Object Relational impedance mismatch, etc. It is commonly used for object and query service. It helps data base developers develop classes which include inheritance, association, composition and polymorphism. A developer or user can express queries either in HQL or SQL Hibernate is a powerful and widely used object-relational mapping (ORM) … Read more

What is Lazy Loading In Hibernate

Lazy setting decides whether to load child objects while loading the Parent Object.You need to do this setting respective hibernate mapping file of the parent class.lazy = true (means not to load child)By default the lazy loading of the child objects is true. This make sure that the child objects are not loaded unless they are explicitly invoked … Read more

What is Lazy Fetching in Hibernate

Lazy setting decides whether to load child objects while loading the Parent Object.You need to do this setting respective hibernate mapping file of the parent class.Lazy = true (means not to load child)By default the lazy loading of the child objects is true. This make sure that the child objects are not loaded unless they … Read more

.What’s the Difference Between load() and get()

load() get() Only use the load() method if you are sure that the object exists. If you are not sure that the object exists, then use one of the get() methods load() method will throw an exception if the unique id is not found in the database. get() method will return null if the  unique id is not found in the database. load() just returns a … Read more