Student.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">
<!--
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="pack.java.ssh.pojo.Student" table="STUDENT" schema="ZHOUHAITAO">
        <id name="id" type="string">
            <column name="ID" length="4" />
            <generator class="assigned"></generator>
        </id>
        <property name="name" type="string">
            <column name="NAME" length="100" not-null="true" />
        </property>
        <property name="sex" type="string">
            <column name="SEX" length="4" not-null="true" />
        </property>
        <property name="age" type="java.lang.Long">
            <column name="AGE" precision="22" scale="0" not-null="true" />
        </property>
    </class>
</hibernate-mapping>

你可能感兴趣的:(xml,.net,Hibernate,MyEclipse,ssh)