forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBasicClass.hbm.xml
70 lines (56 loc) · 2.44 KB
/
BasicClass.hbm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">
<class
name="NHibernate.DomainModel.NHSpecific.BasicClass, NHibernate.DomainModel"
table="bc">
<id name="Id" column="id">
<generator class="assigned" />
</id>
<property name="CharacterProperty" type="Char" column="char_p" length="1"/>
<property name="ClassProperty" type="Type" column="class_p"/>
<property name="CultureInfoProperty" type="CultureInfo" column="cinfo_p"/>
<property name="DateTimeProperty" type="DateTime" column="dtm_p"/>
<property name="Int16Property" type="Int16" column="shrt_p" />
<property name="Int32Property" type="Int32" column="int_p"/>
<property name="Int64Property" type="Int64" column="lng_p"/>
<property name="SingleProperty" type="Single" column="flt_p"/>
<property name="StringProperty" type="String" column="str_p"/>
<property name="TicksProperty" type="Ticks" column="ticks_p"/>
<property name="TrueFalseProperty" type="TrueFalse" column="tf_p" length="1"/>
<property name="YesNoProperty" type="YesNo" column="yn_p" length="1"/>
<property name="PrivateField" column="priv_fld" access="field.camelcase-underscore" />
<array name="StringArray" table="bc_starr" >
<key column="bc_id" />
<index column="sa_idx" />
<element column="str_val" type="String(100)" length="100"/>
</array>
<primitive-array name="Int32Array" table="bc_inarr">
<key column="bc_id" />
<index column="inta_idx" />
<element column="int32_val" type="Int32" />
</primitive-array>
<bag name="StringBag" table="bc_stbag">
<key column="bc_id" />
<element column="str_value" type="String(25)" length="25"/>
</bag>
<list name="StringList" table="bc_stlst">
<key column="bc_id" />
<index column="lst_idx" />
<element column="str_val" type="String(300)" length="300" />
</list>
<map name="StringMap" table="bc_stmap" >
<key column="bc_id"/>
<index column="strm_idx" type="String(10)" length="10" />
<element column="str_val" type="String(50)" length="50"/>
</map>
<map name="StringMapGeneric" table="bc_stmap" >
<key column="bc_id"/>
<index column="strm_idx" type="String(10)" length="10" />
<element column="str_val" type="String(50)" length="50"/>
</map>
<set name="StringSet" table="bc_stset">
<key column="bc_id" />
<element column="str_val" type="String(25)" length="25"/>
</set>
</class>
</hibernate-mapping>