Source Code‎ > ‎src‎ > ‎in.co.sunrays.proj1‎ > ‎dto‎ > ‎

CollegeDTO.hbm.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="in.co.sunrays.proj1.dto">
    <class name="CollegeDTO" table="st_college" dynamic-insert="true"
        dynamic-update="true">
        <id name="id" type="java.lang.Long" column="ID" length="20">
            <generator class="increment" />
        </id>
        <property name="name" type="java.lang.String" column="NAME"
            length="100">
        </property>
        <property name="address" type="java.lang.String" column="ADDRESS"
            length="255">
        </property>
        <property name="state" type="java.lang.String" column="STATE"
            length="20">
        </property>
        <property name="city" type="java.lang.String" column="CITY"
            length="50">
        </property>
        <property name="phoneNo" type="java.lang.String" column="PHONE_NO"
            length="15">
        </property>
        <property name="createdBy" type="java.lang.String" column="CREATED_BY"
            length="50">
        </property>
        <property name="modifiedBy" type="java.lang.String" column="MODIFIED_BY"
            length="50">
        </property>
        <property name="createdDatetime" type="timestamp" column="CREATED_DATETIME">
        </property>
        <property name="modifiedDatetime" type="timestamp" column="MODIFIED_DATETIME">
        </property>
    </class>
</hibernate-mapping>
Comments