Explain About Mapping Files in Hibernate

Mapping files forms the core of any database mapping tools. These files contain field to field mapping, usually this mapping occurs between classes and attributes. After mapping files they can be persist to the database. Tags can be used to indicate the presence of a primary key. In Hibernate, mapping files are used to define … Read more

Explain About Transaction File

Transactions denote a work file which can save changes made or revert back the changes. A transaction can be started by session.beginTransaction() and it uses JDBC connection, CORBA or JTA. When this session starts several transactions may occur. In the context of advanced Java and database programming, a transaction file typically refers to a file … Read more

Explain About Mapping Description File

Mapping description file is the second file which Hibernate uses to configure its functions. This mapping file has an extension *.hbm which instructs mapping between Java class and database tables. The usage of mapping description file rests entirely upon the business entity. In the context of advanced Java, it seems like you might be referring to Hibernate, … Read more

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