PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/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
 1<?xml version="1.0"?>
 2<!DOCTYPE hibernate-mapping PUBLIC
 3	"-//Hibernate/Hibernate Mapping DTD//EN"
 4	"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
 5
 6<hibernate-mapping package="com.minifcs.business">
 7	<class
 8		name="User"
 9		table="[user]"
10	>
11		<meta attribute="sync-DAO">false</meta>
12
13		<id
14			name="id"
15			type="string"
16			column="id"
17		>
18			<generator class="assigned"/>
19		</id>
20		
21		<property
22			name="name"
23			column="name"
24			type="string"
25			not-null="true"
26			length="100"
27		/>
28	
29		<property
30			name="description"
31			column="description"
32			type="string"
33			not-null="false"
34			length="200"
35		/>
36		
37		<property
38			name="password"
39
40			type="string"
41			not-null="false"
42			length="20"
43		/>
44
45		<property
46			name="authType"
47			column="auth_type"
48			type="string"
49			not-null="false"
50			length="20"
51		/>
52	<!--
53		<set name="roles" table="User_Role">
54<key column="user_id"/>
55<many-to-many column="role_id"
56class="Role"/>
57</set>
58-->
59	</class>	
60</hibernate-mapping>