Hibernate 最简单例子 (6)

    <class name="com.guoqiang.hibernate.User" table="user" catalog="test">

        <id name="id" type="java.lang.Integer">

            <column name="id" />

            <generator class="assigned" />

        </id>

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

            <column name="username" length="64" not-null="true" />

        </property>

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

            <column name="password" length="64" not-null="true" />

        </property>

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

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

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

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