码迷,mamicode.com
首页 > 其他好文 > 详细

Students.hbm.xml

时间:2016-07-12 23:38:09      阅读:331      评论:0      收藏:0      [点我收藏+]

标签:hibernate

<?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">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.model.Students" table="students" catalog="hibernate">
        <id name="sid" type="java.lang.Integer">
            <column name="sid" />
            <generator class="assigned" />
        </id>
        <property name="name" type="java.lang.String">
            <column name="name" length="50" />
        </property>
        <property name="gender" type="java.lang.String">
            <column name="gender" length="50" />
        </property>
        <property name="birthday" type="java.util.Date">
            <column name="birthday" length="10" />
        </property>
        <property name="address" type="java.lang.String">
            <column name="address" length="200" />
        </property>
    </class>
</hibernate-mapping>


Students.hbm.xml

标签:hibernate

原文地址:http://11688553.blog.51cto.com/11678553/1825845

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!