hibernate映射文件

<?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 package="app.document">
 <class name="User" table="USER">
  <id name="id" type="java.lang.Integer">
   <column name="USERID"/>
   <generator class="native"/> <!--主键生成器-->
  </id>
  
  <property name="name" type="java.lang.String">
   <column name="NAME"/>
  </property>
  <property name="createDT" type="java.sql.Timestamp">
   <column name="CREATEDATETIME" />
  </property> 
 </class>

</hibernate-mapping>

你可能感兴趣的:(java,sql,.net,xml,Hibernate)