thank you so much, shl
User.hbm.xml:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin 2.1
http://boss.bekk.no/boss/middlegen/
http://www.hibernate.org/
-->
<class
name="org.hibernate.pojos.User"
table="Users"
dynamic-update="false"
dynamic-insert="false"
select-before-update="false"
optimistic-lock="version"
lazy="true"
>
<cache usage="read-write"/>
<meta attribute="class-description" inherit="false">
@hibernate.class
table="Users"
dynamic-update="false"
dynamic-insert="false"
select-before-update="false"
optimistic-lock="version"
lazy="true"
</meta>
<id
name="userid"
type="java.lang.String"
column="USERId"
>
<meta attribute="field-description">
@hibernate.id
generator-class="uuid.hex"
type="java.lang.String"
column="USERId"
</meta>
<generator class="uuid.hex" />
</id>
<property
name="useruserGid"
type="java.math.BigDecimal"
column="USERUserGId"
length="20"
>
<meta attribute="field-description">
@hibernate.property
column="USERUserGId"
length="20"
</meta>
</property>
<property
name="userentpId"
type="java.lang.Integer"
column="USEREntpId"
length="10"
>
<meta attribute="field-description">
@hibernate.property
column="USEREntpId"
length="10"
</meta>
</property>
<property
name="username"
type="java.lang.String"
column="USERName"
length="50"
>
<meta attribute="field-description">
@hibernate.property
column="USERName"
length="50"
</meta>
</property>
<property
name="usercomputerId"
type="java.lang.String"
column="USERComputerId"
length="30"
>
<meta attribute="field-description">
@hibernate.property
column="USERComputerId"
length="30"
</meta>
</property>
<property
name="usercomputerIdType"
type="java.lang.String"
column="USERComputerIdType"
length="4"
>
<meta attribute="field-description">
@hibernate.property
column="USERComputerIdType"
length="4"
</meta>
</property>
<property
name="userpassword"
type="java.lang.String"
column="USERPassword"
length="64"
>
<meta attribute="field-description">
@hibernate.property
column="USERPassword"
length="64"
</meta>
</property>
<property
name="userquestion"
type="java.lang.String"
column="USERQuestion"
length="100"
>
<meta attribute="field-description">
@hibernate.property
column="USERQuestion"
length="100"
</meta>
</property>
<property
name="useranswer"
type="java.lang.String"
column="USERAnswer"
length="100"
>
<meta attribute="field-description">
@hibernate.property
column="USERAnswer"
length="100"
</meta>
</property>
<property
name="useremail"
type="java.lang.String"
column="USEREmail"
length="100"
>
<meta attribute="field-description">
@hibernate.property
column="USEREmail"
length="100"
</meta>
</property>
<property
name="userentpName"
type="java.lang.String"
column="USEREntpName"
length="255"
>
<meta attribute="field-description">
@hibernate.property
column="USEREntpName"
length="255"
</meta>
</property>
<property
name="usertype"
type="java.lang.String"
column="USERType"
length="3"
>
<meta attribute="field-description">
@hibernate.property
column="USERType"
length="3"
</meta>
</property>
<property
name="userattribute"
type="java.lang.String"
column="USERAttribute"
length="3"
>
<meta attribute="field-description">
@hibernate.property
column="USERAttribute"
length="3"
</meta>
</property>
<property
name="userrealName"
type="java.lang.String"
column="USERRealName"
length="50"
>
<meta attribute="field-description">
@hibernate.property
column="USERRealName"
length="50"
</meta>
</property>
<property
name="usersex"
type="java.lang.String"
column="USERSex"
length="2"
>
<meta attribute="field-description">
@hibernate.property
column="USERSex"
length="2"
</meta>
</property>
<property
name="usersource"
type="java.lang.String"
column="USERSource"
length="10"
>
<meta attribute="field-description">
@hibernate.property
column="USERSource"
length="10"
</meta>
</property>
<property
name="useraddress"
type="java.lang.String"
column="USERAddress"
length="255"
>
<meta attribute="field-description">
@hibernate.property
column="USERAddress"
length="255"
</meta>
</property>
<property
name="userpostCode"
type="java.lang.String"
column="USERPostCode"
length="15"
>
<meta attribute="field-description">
@hibernate.property
column="USERPostCode"
length="15"
</meta>
</property>
<property
name="useridNumber"
type="java.lang.String"
column="USERIdNumber"
length="20"
>
<meta attribute="field-description">
@hibernate.property
column="USERIdNumber"
length="20"
</meta>
</property>
<property
name="userwork"
type="java.lang.String"
column="USERWork"
length="4"
>
<meta attribute="field-description">
@hibernate.property
column="USERWork"
length="4"
</meta>
</property>
<property
name="usereducation"
type="java.lang.String"
column="USEREducation"
length="2"
>
<meta attribute="field-description">
@hibernate.property
column="USEREducation"
length="2"
</meta>
</property>
<property
name="usertel"
type="java.lang.String"
column="USERTel"
length="25"
>
<meta attribute="field-description">
@hibernate.property
column="USERTel"
length="25"
</meta>
</property>
<property
name="userstime"
type="java.sql.Timestamp"
column="USERSTime"
length="23"
>
<meta attribute="field-description">
@hibernate.property
column="USERSTime"
length="23"
</meta>
</property>
<property
name="useretime"
type="java.sql.Timestamp"
column="USERETime"
length="23"
>
<meta attribute="field-description">
@hibernate.property
column="USERETime"
length="23"
</meta>
</property>
<property
name="userregisterTime"
type="java.sql.Timestamp"
column="USERRegisterTime"
length="23"
>
<meta attribute="field-description">
@hibernate.property
column="USERRegisterTime"
length="23"
</meta>
</property>
<property
name="userstatus"
type="java.lang.String"
column="USERStatus"
length="1"
>
<meta attribute="field-description">
@hibernate.property
column="USERStatus"
length="1"
</meta>
</property>
<property
name="userforumLevel"
type="java.lang.String"
column="USERForumLevel"
length="4"
>
<meta attribute="field-description">
@hibernate.property
column="USERForumLevel"
length="4"
</meta>
</property>
<property
name="usernoteNum"
type="java.lang.Integer"
column="USERNoteNum"
length="10"
>
<meta attribute="field-description">
@hibernate.property
column="USERNoteNum"
length="10"
</meta>
</property>
<property
name="userremark"
type="java.lang.String"
column="USERRemark"
length="50"
>
<meta attribute="field-description">
@hibernate.property
column="USERRemark"
length="50"
</meta>
</property>
<property
name="userissueLevel"
type="java.lang.String"
column="USERIssueLevel"
length="3"
>
<meta attribute="field-description">
@hibernate.property
column="USERIssueLevel"
length="3"
</meta>
</property>
<property
name="userverityStatus"
type="java.lang.String"
column="USERVerityStatus"
length="2"
>
<meta attribute="field-description">
@hibernate.property
column="USERVerityStatus"
length="2"
</meta>
</property>
<property
name="userlock"
type="java.lang.String"
column="USERLock"
length="1"
>
<meta attribute="field-description">
@hibernate.property
column="USERLock"
length="1"
</meta>
</property>
<property
name="userissueStatus"
type="java.lang.String"
column="USERIssueStatus"
length="2"
>
<meta attribute="field-description">
@hibernate.property
column="USERIssueStatus"
length="2"
</meta>
</property>
<!-- Associations -->
</class>
</hibernate-mapping>[/b]