forked from hibernate/hibernate-tools
/
HelloWorld.hbm.xml
51 lines (39 loc) · 1.45 KB
/
HelloWorld.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
<?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">
<!--
This mapping is a test mapping for hbm2java
-->
<hibernate-mapping>
<class name="HelloWorld">
<meta attribute="generated-class" inherit="false">generated.BaseHelloWorld</meta>
<meta attribute="extends">Comparable</meta>
<meta attribute="interface">true</meta>
<meta attribute="class-description">Hey there</meta>
<id name="id"
length="10" type="string">
<meta attribute="field-description">Test Field Description</meta>
<meta attribute="use-in-tostring">true</meta>
<generator class="assigned"/>
</id>
<property name="hello" type="string" length="5">
<meta attribute="use-in-tostring">true</meta>
</property>
<property name="world" type="long">
<meta attribute="use-in-tostring">false</meta>
<meta attribute="use-in-equals">true</meta>
<meta attribute="property-type">long</meta>
</property>
<subclass name="HelloUniverse">
<property name="dimension" type="string"/>
<component name="address" class="UniversalAddress">
<property name="galaxy" type="string"/>
<property name="planet" type="string"/>
</component>
<property name="notgenerated" type="string">
<meta attribute="gen-property">false</meta>
</property>
</subclass>
</class>
</hibernate-mapping>