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>