Explain About Hibernate.cfg.xml

Hibernate can be configured with two types of files out of which hibernate.cfg.xmlis widely used and popular feature. Hibernate consults hibernate.cfg.xml file for its operating properties such as database dialect, connection string and mapping files. These files are searched on class path. In Advanced Java, particularly when working with Hibernate, the hibernate.cfg.xml file is a crucial configuration file … Read more

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