hibernate映射文件

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="com.zll.entity">
<class name="User" table="users">
<id name="userId" column="userid">
<generator class="native"></generator>
</id>
<property name="userName" column="username"></property>
<property name="userPwd" column="userpwd"></property>
</class>
</hibernate-mapping>

posted @ 2012-08-28 13:36  西瓜霜  阅读(137)  评论(0编辑  收藏  举报