Subversion Repositories bacoAlunos

Rev

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.UrlStatYear" table="urlstatyear" 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.UrlStatYearId">
            <meta attribute="scope-class">public</meta>
            <key-property name="year" type="integer" column="year"/>
            <key-many-to-one name="urlStat" class="pt.estgp.estgweb.domain.UrlStat" column="relativePathId"/>
        </composite-id>
        <discriminator column="discrimitator"/>
        <timestamp name="updateDate" unsaved-value="null"/>
        <property name="saveDate" type="timestamp"/>
        <property name="totalClicks" type="integer"/>
        <property name="month1Clicks" type="integer"/>
        <property name="month2Clicks" type="integer"/>
        <property name="month3Clicks" type="integer"/>
        <property name="month4Clicks" type="integer"/>
        <property name="month5Clicks" type="integer"/>
        <property name="month6Clicks" type="integer"/>
        <property name="month7Clicks" type="integer"/>
        <property name="month8Clicks" type="integer"/>
        <property name="month9Clicks" type="integer"/>
        <property name="month10Clicks" type="integer"/>
        <property name="month11Clicks" type="integer"/>
        <property name="month12Clicks" type="integer"/>
        <many-to-one name="month1" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month1"/>
            <column name="yearId1"/>
            <column name="relativePathId1"/>
        </many-to-one>
        <many-to-one name="month2" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month2"/>
            <column name="yearId2"/>
            <column name="relativePathId2"/>
        </many-to-one>
        <many-to-one name="month3" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month3"/>
            <column name="yearId3"/>
            <column name="relativePathId3"/>
        </many-to-one>
        <many-to-one name="month4" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month4"/>
            <column name="yearId4"/>
            <column name="relativePathId4"/>
        </many-to-one>
        <many-to-one name="month5" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month5"/>
            <column name="yearId5"/>
            <column name="relativePathId5"/>
        </many-to-one>
        <many-to-one name="month6" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month6"/>
            <column name="yearId6"/>
            <column name="relativePathId6"/>
        </many-to-one>
        <many-to-one name="month7" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month7"/>
            <column name="yearId7"/>
            <column name="relativePathId7"/>
        </many-to-one>
        <many-to-one name="month8" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month8"/>
            <column name="yearId8"/>
            <column name="relativePathId8"/>
        </many-to-one>
        <many-to-one name="month9" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month9"/>
            <column name="yearId9"/>
            <column name="relativePathId9"/>
        </many-to-one>
        <many-to-one name="month10" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month10"/>
            <column name="yearId10"/>
            <column name="relativePathId10"/>
        </many-to-one>
        <many-to-one name="month11" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month11"/>
            <column name="yearId11"/>
            <column name="relativePathId11"/>
        </many-to-one>
        <many-to-one name="month12" class="pt.estgp.estgweb.domain.UrlStatMonth" outer-join="true">
            <column name="month12"/>
            <column name="yearId12"/>
            <column name="relativePathId12"/>
        </many-to-one>
        <subclass name="pt.estgp.estgweb.domain.UrlStatYearImpl" discriminator-value="UrlStatYearImpl"/>
    </class>
</hibernate-mapping>