Number Of Page View:100,000+/Months
LOGIN |New User


What are the different types of property and class mappings?
The different types of property and class mappings:
   * Typical and most common property mapping:
    <property name="Name" column="firstName" type="string"/>
    <property name="Name" type="string">
        <column name="firstName"/>
    * Derived properties:
    <property name="averageAmount" formula="( select AVG(b.AMOUNT) from TableName a where a.ITEM_ID = ITEM_ID )" type="big_decimal"/>
    * controlling inserts and updates:
    <property name="name" column="NAME" type="string" insert="false" update="false"/>