~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-distribution-3.3.2.GA/project/tutorials/eg/src/main/resources/org/hibernate/auction/User.hbm.xml

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
<!DOCTYPE hibernate-mapping PUBLIC 
3
 
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4
 
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5
 
<hibernate-mapping 
6
 
        package="org.hibernate.auction">
7
 
 
8
 
        <class name="User" table="AuctionUser" lazy="true">
9
 
                <comment>Users may bid for or sell auction items.</comment>
10
 
                
11
 
                <id name="id">
12
 
                        <generator class="native"/>
13
 
                </id>
14
 
                
15
 
                <natural-id mutable="true">
16
 
                        <property name="userName"
17
 
                                        length="10"/>
18
 
                </natural-id>
19
 
                
20
 
                <property name="password" 
21
 
                                not-null="true"
22
 
                                length="15"
23
 
                                column="`password`"/>
24
 
                
25
 
                <property name="email"/>
26
 
                
27
 
                <component name="name">
28
 
                        <property name="firstName"
29
 
                                        length="50"
30
 
                                        not-null="true"/>
31
 
                        <property name="initial" 
32
 
                                        column="`initial`"/>
33
 
                        <property name="lastName"
34
 
                                        length="50"
35
 
                                        not-null="true"/>
36
 
                </component>
37
 
                
38
 
                <bag name="bids"
39
 
                                inverse="true" 
40
 
                                cascade="save-update,lock">
41
 
                        <key column="bidder"/>
42
 
                        <one-to-many class="Bid"/>
43
 
                </bag>
44
 
                
45
 
                <bag name="auctions"
46
 
                                inverse="true" 
47
 
                                cascade="save-update,lock">
48
 
                        <key column="seller"/>
49
 
                        <one-to-many class="AuctionItem"/>
50
 
                </bag>
51
 
                
52
 
        </class>
53
 
        
54
 
</hibernate-mapping>
 
 
b'\\ No newline at end of file'