xxx.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>
    <class name="com.eshop.model.User" table="user">
        <id name="id" type="java.lang.Integer">
            <column name="Id" />
            <generator class="native" />
        </id>
        <property name="name" type="java.lang.String">
            <column name="Name" />
        </property>
        <property name="userPwd" type="java.lang.String">
            <column name="userPwd"/>
        </property>
        <property name="email" type="java.lang.String">
            <column name="Email" />
        </property>
        <property name="phone" type="java.lang.String">
            <column name="Phone"/>
        </property>
        <property name="address" type="java.lang.String">
            <column name="Address" />
        </property>
        <property name="isManager" type="java.lang.Boolean">
            <column name="isManager"/>
        </property>

    </class>
</hibernate-mapping>

你可能感兴趣的:(WinForm)