source: ether_statistics/persistence/implementation/com/ether/dao/simulation/Simulation.hbm.xml @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 2.0 KB
Line 
1<?xml version="1.0"?>
2<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
3        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
4
5<hibernate-mapping>
6    <class name="com.ether.simulation.Simulation" table="simulation" schema="public">
7        <id name="id">
8            <column name="id"/>
9
10            <generator class="sequence">
11                <param name="sequence">s_simulation</param>
12            </generator>
13        </id>
14
15        <property name="location">
16            <column name="location"/>
17        </property>
18
19        <property name="xmlnsHeader">
20            <column name="xmlnsheader"/>
21        </property>
22
23        <set name="dimension" table="rel_simulation_dimension">
24            <key>
25                <column name="simulation_id" not-null="true">
26                    <comment>The primary key</comment>
27                </column>
28            </key>
29
30            <many-to-many entity-name="com.ether.simulation.Dimension">
31                <column name="dimension_id" not-null="true"/>
32            </many-to-many>
33        </set>
34
35        <set name="attribute" table="rel_simulation_attribute">
36            <key>
37                <column name="simulation_id" not-null="true">
38                    <comment>The primary key</comment>
39                </column>
40            </key>
41
42            <many-to-many entity-name="com.ether.simulation.Attribute">
43                <column name="attribute_id" not-null="true"/>
44            </many-to-many>
45        </set>
46
47        <set name="variable" table="rel_simulation_variable">
48            <key>
49                <column name="simulation_id" not-null="true">
50                    <comment>The primary key</comment>
51                </column>
52            </key>
53
54            <many-to-many entity-name="com.ether.simulation.Variable">
55                <column name="variable_id" not-null="true"/>
56            </many-to-many>
57        </set>
58
59        <property name="dates">
60            <column name="dates"/>
61        </property>
62
63    </class>
64</hibernate-mapping>
Note: See TracBrowser for help on using the repository browser.