-
Notifications
You must be signed in to change notification settings - Fork 214
/
ClassFullAttribute.hbm.xml
79 lines (71 loc) · 2.02 KB
/
ClassFullAttribute.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
71
72
73
74
75
76
77
78
79
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.hibernate.tool.hbm2x.hbm2hbmxml">
<!--
This mapping demonstrates basic attributes of the mapping document
(1) Close to full attributes included.
-->
<class
name="ClassFullAttribute"
schema="myschema"
catalog="mycatalog"
mutable="false"
dynamic-update="true"
dynamic-insert="true"
select-before-update="true"
lazy="false"
abstract="true"
optimistic-lock="none"
discriminator-value="null"
polymorphism="explicit"
batch-size="10"
where="archive='N'"
subselect="from query"
persister="org.hibernate.tool.hbm2x.hbm2hbmxml.mypersister"
rowid="rowid"
>
<comment>A comment for ClassFullAttribute</comment>
<id name="basicId"
length="10"
type="string"
unsaved-value="null"
>
<generator class="org.hibernate.id.TableHiLoGenerator">
<param name="table">uni_table</param>
<param name="column">next_hi_value</param>
</generator>
</id>
<property name="description"
not-null="true"
length="200"
type="string"
update="false"
insert="false"
access="field"
lazy="true"
optimistic-lock="false"
/>
<property name="columnDetails"
type="string"
>
<column name="columnd" length="200" not-null="true" sql-type="varchar(200)" unique="true" >
<comment>columnd comment</comment>
</column>
</property>
<property name="columnDetails"
type="string"
>
<column name="columnd" length="200" not-null="true" sql-type="varchar(200)" unique="true" >
<comment></comment><!-- empty comment -->
</column>
</property>
<property name="vitualValue"
not-null="true"
length="200"
type="string"
formula="my virtual formula"
/>
</class>
</hibernate-mapping>