User.hbm.xml配置模版

<?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">
<hibernate-mapping package="com.demo.hibernate.beans">
	<class name="User" table="user">
		<id name="id" column="ID" type="integer">
			<generator class="native"/>
		</id>
		<property name="username" column="username" type="string"/>
		<property name="password" column="password" type="string"/>
		<property name="email" column="email" type="string"/>
	</class>
</hibernate-mapping>


你可能感兴趣的:(User.hbm.xml配置模版)