Rev 16 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12 | jmachado | 1 | <?xml version="1.0"?> |
2 | <!DOCTYPE hibernate-mapping |
||
3 | PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
||
4 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
||
5 | |||
6 | <hibernate-mapping> |
||
7 | <class name="pt.estgp.estgweb.domain.UrlStatYear" table="urlstatyear" abstract="true"> |
||
8 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainObject</meta> |
||
9 | <meta attribute="scope-class">public abstract</meta> |
||
10 | <composite-id name="id" class="pt.estgp.estgweb.domain.UrlStatYearId"> |
||
11 | <meta attribute="scope-class">public</meta> |
||
12 | <key-property name="year" type="integer" column="year"/> |
||
13 | <key-many-to-one name="urlStat" class="pt.estgp.estgweb.domain.UrlStat" column="relativePathId"/> |
||
14 | </composite-id> |
||
15 | <discriminator column="discrimitator"/> |
||
16 | <timestamp name="updateDate" unsaved-value="null"/> |
||
17 | <property name="saveDate" type="timestamp"/> |
||
18 | <property name="totalClicks" type="integer"/> |
||
19 | <property name="month1Clicks" type="integer"/> |
||
20 | <property name="month2Clicks" type="integer"/> |
||
21 | <property name="month3Clicks" type="integer"/> |
||
22 | <property name="month4Clicks" type="integer"/> |
||
23 | <property name="month5Clicks" type="integer"/> |
||
24 | <property name="month6Clicks" type="integer"/> |
||
25 | <property name="month7Clicks" type="integer"/> |
||
26 | <property name="month8Clicks" type="integer"/> |
||
27 | <property name="month9Clicks" type="integer"/> |
||
28 | <property name="month10Clicks" type="integer"/> |
||
29 | <property name="month11Clicks" type="integer"/> |
||
30 | <property name="month12Clicks" type="integer"/> |
||
31 | <many-to-one name="month1" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
32 | <column name="month1"/> |
||
33 | <column name="yearId1"/> |
||
34 | <column name="relativePathId1"/> |
||
35 | </many-to-one> |
||
36 | <many-to-one name="month2" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
37 | <column name="month2"/> |
||
38 | <column name="yearId2"/> |
||
39 | <column name="relativePathId2"/> |
||
40 | </many-to-one> |
||
41 | <many-to-one name="month3" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
42 | <column name="month3"/> |
||
43 | <column name="yearId3"/> |
||
44 | <column name="relativePathId3"/> |
||
45 | </many-to-one> |
||
46 | <many-to-one name="month4" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
47 | <column name="month4"/> |
||
48 | <column name="yearId4"/> |
||
49 | <column name="relativePathId4"/> |
||
50 | </many-to-one> |
||
51 | <many-to-one name="month5" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
52 | <column name="month5"/> |
||
53 | <column name="yearId5"/> |
||
54 | <column name="relativePathId5"/> |
||
55 | </many-to-one> |
||
56 | <many-to-one name="month6" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
57 | <column name="month6"/> |
||
58 | <column name="yearId6"/> |
||
59 | <column name="relativePathId6"/> |
||
60 | </many-to-one> |
||
61 | <many-to-one name="month7" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
62 | <column name="month7"/> |
||
63 | <column name="yearId7"/> |
||
64 | <column name="relativePathId7"/> |
||
65 | </many-to-one> |
||
66 | <many-to-one name="month8" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
67 | <column name="month8"/> |
||
68 | <column name="yearId8"/> |
||
69 | <column name="relativePathId8"/> |
||
70 | </many-to-one> |
||
71 | <many-to-one name="month9" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
72 | <column name="month9"/> |
||
73 | <column name="yearId9"/> |
||
74 | <column name="relativePathId9"/> |
||
75 | </many-to-one> |
||
76 | <many-to-one name="month10" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
77 | <column name="month10"/> |
||
78 | <column name="yearId10"/> |
||
79 | <column name="relativePathId10"/> |
||
80 | </many-to-one> |
||
81 | <many-to-one name="month11" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
82 | <column name="month11"/> |
||
83 | <column name="yearId11"/> |
||
84 | <column name="relativePathId11"/> |
||
85 | </many-to-one> |
||
86 | <many-to-one name="month12" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true"> |
||
87 | <column name="month12"/> |
||
88 | <column name="yearId12"/> |
||
89 | <column name="relativePathId12"/> |
||
90 | </many-to-one> |
||
91 | <subclass name="pt.estgp.estgweb.domain.UrlStatYearImpl" discriminator-value="UrlStatYearImpl"/> |
||
92 | </class> |
||
93 | </hibernate-mapping> |