Explain the Steps Involved in Creating Database Applications with Java Using Hibernate

  Creating Database applications with Java is made simpler with Hibernate. First Plain old java object needs to be written, XML mapping file should be created which shows relationship between database and class attributes. Hibernate APIs can be used to store persistent objects. Creating database applications with Java using Hibernate involves several steps. Hibernate is … Read more

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