Explain About Session Interface

This represents hibernate session which perform the manipulation on the database entities. Some of the activities performed by session interface are as follows they are managing the persistence state, fetching persisted ones and management of the transaction demarcation. In advanced Java programming, particularly in web development using technologies like Servlets and JSP (JavaServer Pages), the … Read more

Brief About the Session Factory Interface

It creates new hibernate sessions by referencing immutable and thread safe objects. Application using hibernate are usually allowed and desgined to implement single instance of the class using this interface. Only single instance of a class can be used which is using this interface. In the context of advanced Java programming, specifically in the context … Read more

Explain About the Dirty Checking Feature of Hibernate

Dirty checking feature of the Hibernate allows users or developers to avoid time consuming data base write actions. This feature makes necessary updations and changes to the fields which require a change, remaining fields are left unchanged or untouched. In Hibernate, dirty checking is a mechanism that automatically detects changes to the state of an … Read more

Explain About Transparent Persistence of Hibernate

Transparent persistence is provided for Plain old Java objects or POJOs. For proper functioning of the applications importance should be given to the methods equals () and hash Code methods (). It has a requirement which should be strictly followed in the applications which is a no-argument constructor. In the context of Hibernate and transparent … Read more

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