What is the Effect when a Transient Mapped Object is Passed onto a Sessions Save

When a session.save( ) is passed to a transient mapped object it makes the method to become more persistent. Garbage collection and termination of the Java virtual machine stays as long as it is deleted explicitly. It may head back to its transient state. In the context of Hibernate, which is a popular Java framework for Object-Relational … Read more

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