Login.hbm.xml

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

    <class name="com.pb.hibernate.po.Login" table="LOGIN">
        <id name="userName" type="java.lang.String" >
            <column name="USERNAME" length="20" />
            <generator class="assigned"/>
        </id>
        <property name="password" type="java.lang.String" >
              <column name="PASSWORD" length="20"  not-null="true"/>
        </property>
    
    </class>

</hibernate-mapping>

posted @ 2014-04-03 01:17  若林  阅读(164)  评论(0编辑  收藏  举报