You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
927 B
24 lines
927 B
<?xml version='1.0' encoding='utf-8'?>
|
|
<!DOCTYPE hibernate-mapping PUBLIC
|
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
|
<hibernate-mapping>
|
|
|
|
<class name="JavaBean.User" table="user" schema="userinfo">
|
|
<id name="userId">
|
|
<column name="userID" sql-type="int(11)"/>
|
|
</id>
|
|
<property name="username">
|
|
<column name="username" sql-type="varchar(45)" length="45"/>
|
|
</property>
|
|
<property name="password">
|
|
<column name="password" sql-type="varchar(20)" length="20"/>
|
|
</property>
|
|
<property name="school">
|
|
<column name="school" sql-type="varchar(20)" length="20" not-null="true"/>
|
|
</property>
|
|
<property name="sex">
|
|
<column name="sex" sql-type="varchar(4)" length="4" not-null="true"/>
|
|
</property>
|
|
</class>
|
|
</hibernate-mapping> |