Forum

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

Reply

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"/>
   Or
    <property name="Name" type="string">
        <column name="firstName"/>
    </property>
    * 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"/>