<?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>

破罐子互摔