<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD
3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="cn.edu.zjut.po.Customer" table="customer"
catalog="hibernatedb">
<id name="customerId" type="int">
<column name="customerID" />
<generator class="assigned" />
</id>
<property name="account" type="string">
<column name="account" length="20" unique="true" />
</property>
<property name="password" type="string">
<column name="password" length="20" />
</property>
<property name="name" type="string">
<column name="name" length="20" />
</property>
<property name="sex" type="java.lang.Boolean">
<column name="sex" />
</property>
<property name="birthday" type="date">
<column name="birthday" length="10" />
</property>
<property name="phone" type="string">
<column name="phone" length="20" />
</property>
<property name="email" type="string">
<column name="email" length="100" />
</property>
<property name="address" type="string">
<column name="address" length="200" />
</property>
<property name="zipcode" type="string">
<column name="zipcode" length="10" />
</property>
<property name="fax" type="string">
<column name="fax" length="20" />
</property>
</class>
</hibernate-mapping>