/web/DRCP/src/com/bluesky/drcp/persistence/dao/hibernate/map/User.hbm.xml
http://drcp.googlecode.com/ · XML · 60 lines · 46 code · 7 blank · 7 comment · 0 complexity · 1d9ab55ce0dcc5e65539f7e93fde3587 MD5 · raw file
- <?xml version="1.0"?>
- <!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD//EN"
- "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
-
- <hibernate-mapping package="com.minifcs.business">
- <class
- name="User"
- table="[user]"
- >
- <meta attribute="sync-DAO">false</meta>
-
- <id
- name="id"
- type="string"
- column="id"
- >
- <generator class="assigned"/>
- </id>
-
- <property
- name="name"
- column="name"
- type="string"
- not-null="true"
- length="100"
- />
-
- <property
- name="description"
- column="description"
- type="string"
- not-null="false"
- length="200"
- />
-
- <property
- name="password"
-
- type="string"
- not-null="false"
- length="20"
- />
-
- <property
- name="authType"
- column="auth_type"
- type="string"
- not-null="false"
- length="20"
- />
- <!--
- <set name="roles" table="User_Role">
- <key column="user_id"/>
- <many-to-many column="role_id"
- class="Role"/>
- </set>
- -->
- </class>
- </hibernate-mapping>