Rev 690 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="pt.estgp.estgweb.domain.UrlStatMonth" table="urlstatmonth" abstract="true">
<meta attribute="extends">pt.estgp.estgweb.domain.DomainObject</meta>
<meta attribute="scope-class">public abstract</meta>
<composite-id name="id" class="pt.estgp.estgweb.domain.UrlStatMonthId">
<meta attribute="scope-class">public</meta>
<key-property name="month" type="integer" column="month"/>
<key-many-to-one name="urlStatYear" class="pt.estgp.estgweb.domain.UrlStatYear">
<column name="year"/>
<column name="relativePath"/>
</key-many-to-one>
</composite-id>
<discriminator column="discrimitator"/>
<timestamp source="db" name="updateDate" unsaved-value="null"/>
<property name="saveDate" type="timestamp"/>
<property name="date" type="date"/>
<property name="totalClicks" type="integer"/>
<set name="days" order-by="day asc" lazy="true" cascade="all" inverse="true">
<key>
<column name="month"/>
<column name="year"/>
<column name="relativePath"/>
</key>
<one-to-many class="pt.estgp.estgweb.domain.UrlStatDay"/>
</set>
<subclass name="pt.estgp.estgweb.domain.UrlStatMonthImpl" discriminator-value="UrlStatMonthImpl"/>
</class>
</hibernate-mapping>