Line | |
---|
1 | <?xml version="1.0"?> |
---|
2 | <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
---|
3 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
---|
4 | |
---|
5 | <hibernate-mapping> |
---|
6 | <class name="com.ether.user.User" table="user" schema="public"> |
---|
7 | <id name="id"> |
---|
8 | <column name="user_id"/> |
---|
9 | |
---|
10 | <generator class="sequence"> |
---|
11 | <param name="sequence">s_user</param> |
---|
12 | </generator> |
---|
13 | </id> |
---|
14 | |
---|
15 | <property name="lastName"> |
---|
16 | <column name="lastname" not-null="true"/> |
---|
17 | </property> |
---|
18 | |
---|
19 | <property name="firstName"> |
---|
20 | <column name="firstname"/> |
---|
21 | </property> |
---|
22 | |
---|
23 | <property name="email"> |
---|
24 | <column name="email" not-null="true"/> |
---|
25 | </property> |
---|
26 | |
---|
27 | <property name="password"> |
---|
28 | <column name="password" not-null="true"/> |
---|
29 | </property> |
---|
30 | |
---|
31 | <property name="role" type="com.ether.dao.user.UserRoleEnum"> |
---|
32 | <column name="role"/> |
---|
33 | </property> |
---|
34 | |
---|
35 | <property name="creationDate" type="timestamp"> |
---|
36 | <column name="creation_date" not-null="true"/> |
---|
37 | </property> |
---|
38 | |
---|
39 | <property name="state" type="com.ether.dao.user.UserStateEnum"> |
---|
40 | <column name="state" not-null="true"/> |
---|
41 | </property> |
---|
42 | |
---|
43 | <property name="accessToBO"> |
---|
44 | <column name="access_to_bo" not-null="true"/> |
---|
45 | </property> |
---|
46 | </class> |
---|
47 | </hibernate-mapping> |
---|
Note: See
TracBrowser
for help on using the repository browser.