Rev 16 | Rev 31 | Go to most recent revision | Details | Compare with Previous | 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"/> |
||
18 | jmachado | 13 | <key-many-to-one name="urlStat" class="pt.estgp.estgweb.domain.UrlStat" column="relativePath"/> |
12 | jmachado | 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"/> |
||
18 | jmachado | 19 | <set name="months" order-by="month asc" lazy="true" cascade="all"> |
20 | <key> |
||
21 | <column name="year"/> |
||
22 | <column name="relativePath"/> |
||
23 | </key> |
||
24 | <one-to-many class="pt.estgp.estgweb.domain.UrlStatMonth"/> |
||
25 | </set> |
||
12 | jmachado | 26 | <subclass name="pt.estgp.estgweb.domain.UrlStatYearImpl" discriminator-value="UrlStatYearImpl"/> |
27 | </class> |
||
28 | </hibernate-mapping> |