<?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.kaishengit.pojo">
<class name="User" table="user">
<id name="id">
<!--主键生成策略 native表示自动增长-->
<generator class="native"/>
</id>
<property name="userName" column="user_name"/>
<property name="passward" column="password"/>
</class>
</hibernate-mapping>
网友评论