m2u-upass-core / resources / my / com / upass / hibernate / TbAmTac.hbm.xml @ 5:f608e6319b70
History | View | Annotate | Download (1.52 KB)
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
3 |
|
4 |
<hibernate-mapping>
|
5 |
<class name="my.com.upass.pojo.TacBean" table="TB_AM_TAC"> |
6 |
<id name="userID" type="long"> |
7 |
<column name="T_USER_ID" precision="9" /> |
8 |
<generator class="assigned" /> |
9 |
</id>
|
10 |
|
11 |
<property name="cipherText" type="string"> |
12 |
<column name="T_TAC_CIPHERTEXT" length="64" /> |
13 |
</property>
|
14 |
<property name="state" type="integer"> |
15 |
<column name="T_TAC_STATE" precision="1" not-null="true" |
16 |
default="0" /> |
17 |
</property>
|
18 |
<property name="dateCreated" type="timestamp"> |
19 |
<column name="T_DATE_GENERATED" /> |
20 |
</property>
|
21 |
<property name="dateFirstUsed" type="timestamp"> |
22 |
<column name="T_DATE_FIRST_USED" /> |
23 |
</property>
|
24 |
<property name="dateLastUsed" type="timestamp"> |
25 |
<column name="T_DATE_LAST_USED" /> |
26 |
</property>
|
27 |
<property name="useCount" type="integer"> |
28 |
<column name="T_USE_COUNT" precision="6" not-null="true" |
29 |
default="0" /> |
30 |
</property>
|
31 |
<property name="errorCount" type="integer"> |
32 |
<column name="T_ERROR_COUNT" precision="2" not-null="true" |
33 |
default="0" /> |
34 |
</property>
|
35 |
<property name="sessionId" type="string"> |
36 |
<column name="T_SESSION_ID" length="32" /> |
37 |
</property>
|
38 |
|
39 |
<many-to-one name="upassUser" class="my.com.upass.pojo.UserBean" |
40 |
fetch="join" column="T_USER_ID" cascade="save-update, delete" insert="false" |
41 |
update="false" /> |
42 |
</class>
|
43 |
</hibernate-mapping>
|
44 |
|