Repository navigation
Expand file tree
/
Copy pathUser.map.xml
More file actions
24 lines (23 loc) · 1.46 KB
/
Copy pathUser.map.xml
File metadata and controls
24 lines (23 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
<class name="User" table="User">
<id name="Id" column="id" increment="false" generate="true" length="50" type="varchar"/>
<property name="email" column="email" length="50" type="varchar"/>
<property name="username" column="username" length="50" type="varchar"/>
<property name="password" column="password" length="15" type="varchar"/>
<property name="nickname" column="nickname" length="50" type="varchar"/>
<property name="introduce" column="introduce" length="100" type="varchar"/>
<property name="gender" column="gender" length="4" type="int"/>
<property name="firstName" column="first_name" length="10" type="varchar"/>
<property name="lastName" column="last_name" length="10" type="varchar"/>
<property name="country" column="country" length="50" type="varchar"/>
<property name="city" column="city" length="50" type="varchar"/>
<property name="telephone" column="telephone" length="50" type="varchar"/>
<property name="postcode" column="postcode" length="6" type="varchar"/>
<property name="lastloginIP" column="lastlogin_IP" length="15" type="varchar"/>
<property name="lastloginTime" column="lastlogin_time" length="0" type="datetime"/>
<property name="registrationTime" column="registration_time" length="0" type="datetime"/>
<property name="logo" column="logo" length="50" type="varchar"/>
<property name="status" column="status" length="1" type="bit"/>
</class>
</mapping>