Hibernate 最简单例子 (7)

        </property>

        <property name="lastName" type="java.lang.String">

            <column name="last_name" length="128" not-null="true" />

        </property>

        <property name="dateCreated" type="java.lang.Long">

            <column name="date_created" not-null="true" />

        </property>

    </class>

</hibernate-mapping>

 

3AbstractUser.java

package com.guoqiang.hibernate;

 

/**

 *AbstractUsergeneratedbyMyEclipsePersistenceTools

 */

 

publicabstractclass AbstractUser implements java.io.Serializable {

 

    // Fields

 

    private Integer id;

 

    private String username;

 

    private String password;

 

    private String firstName;

 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzjzyw.html