Explain some of the elements of hbm.xml?

devquora
devquora

Posted On: Feb 22, 2018

 

  • It is used to define specific mappings from Java classes to database tables.
  • It is used to define the mapping of unique ID attribute in class to the primary key of the database table.
  • It is used to generate the primary key values automatically.
  • It is used to map a Java class property to a column in the database table.
  • It is used to map a java.util.set, java.util.Sortedset property in hibernate.
  • It is used to map a java.util.List property in hibernate.
  • It is used to map a java.util.Collection property in hibernate.
  • It is used to map a java.util.Map property in hibernate.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Hibernate Interview Questions

    What is Hibernate ?

    Hibernate is a free software, which is distributed under GNU Lesser General public license 2.1. It is categorized under the Object Relational Mapping (ORM)...

    Hibernate Interview Questions

    What is HQL in Hibernate?

    HQL is the acronym of Hibernate Query Language.It considers the java objects in a similar way as that of the SQL. It is..

    Hibernate Interview Questions

    Explain the advantages of Hibernate?

    Some of the advantages of Hibernate are: It provides Simple Querying of data. An application server is not required to..