原创作品,允许转载,转载时请务必以超链接形式标明文章
原始出处 、作者信息和本声明。否则将追究法律责任。
http://qingkechina.blog.51cto.com/5552198/1377044
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?
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
package
=
"com.medical.server.dao"
>
<
class
name
=
"UserDAO"
table
=
"USERTABLE"
>
<
id
name
=
"userId"
column
=
"userId"
type
=
"string"
>
<
generator
class
=
"uuid.hex"
/>
</
id
>
<
property
name
=
"userAuth"
column
=
"userAuth"
/>
<
property
name
=
"userSign"
column
=
"userSign"
/>
<
property
name
=
"attention"
column
=
"attention"
/>
</
class
>
</
hibernate-mapping
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/**
* 用户ID
*/
private
String userId =
null
;
/**
* 用户鉴权字符串
*/
private
String userAuth =
null
;
/**
* 用户自我描述
*/
private
String userSign =
null
;
/**
* 用户关注领域
*/
private
String attention =
null
;
|