hibernate映射文件

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPEhibernate-mappingPUBLIC"-//Hibernate/HibernateMappingDTD3.0//EN"

"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mappingpackage="app.document">

<classname="User"table="USER">

<idname="id"type="java.lang.Integer">

<columnname="USERID"/>

<generatorclass="native"/><!--主键生成器-->

</id>

<propertyname="name"type="java.lang.String">

<columnname="NAME"/>

</property>

<propertyname="createDT"type="java.sql.Timestamp">

<columnname="CREATEDATETIME"/>

</property>

 </class>

</hibernate-mapping>

相关推荐