Subversion Repositories bacoAlunos

Rev

Rev 1547 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1547 Rev 1549
1
<?xml version="1.0"?>
1
<?xml version="1.0"?>
2
<!DOCTYPE hibernate-mapping
2
<!DOCTYPE hibernate-mapping
3
        PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
3
        PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
4
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5
 
5
 
6
<hibernate-mapping>
6
<hibernate-mapping>
7
    <class name="pt.estgp.estgweb.domain.ComunicationFolder" table="comunicationfolder" abstract="true">
7
    <class name="pt.estgp.estgweb.domain.ComunicationFolder" table="comunicationfolder" abstract="true">
8
        <meta attribute="extends">pt.estgp.estgweb.domain.OwnedDomainObject</meta>
8
        <meta attribute="extends">pt.estgp.estgweb.domain.OwnedDomainObject</meta>
9
        <meta attribute="scope-class">public abstract</meta>
9
        <meta attribute="scope-class">public abstract</meta>
10
        <id name="id" type="long">
10
        <id name="id" type="long">
11
            <generator class="native"/>
11
            <generator class="native"/>
12
        </id>
12
        </id>
13
        <discriminator column="discrimitator"/>
13
        <discriminator column="discrimitator"/>
14
        <timestamp   name="updateDate" unsaved-value="null"/>
14
        <timestamp source="db"   name="updateDate" unsaved-value="null"/>
15
        <property name="saveDate" type="timestamp"/>
15
        <property name="saveDate" type="timestamp"/>
16
        <property name="name" type="string" index="nameIndex"/>
16
        <property name="name" type="string" index="nameIndex"/>
17
        <property name="code" type="string" index="codeIndex"/>
17
        <property name="code" type="string" index="codeIndex"/>
18
        <property name="targetRoles" type="string"/>
18
        <property name="targetRoles" type="string"/>
19
        <many-to-one name="owner" class="pt.estgp.estgweb.domain.GenericUser" lazy="false" outer-join="true"/>
19
        <many-to-one name="owner" class="pt.estgp.estgweb.domain.GenericUser" lazy="false" outer-join="true"/>
20
        <many-to-one name="blog" class="pt.estgp.estgweb.domain.Blog" lazy="false" outer-join="true"/>
20
        <many-to-one name="blog" class="pt.estgp.estgweb.domain.Blog" lazy="false" outer-join="true"/>
21
        <subclass name="pt.estgp.estgweb.domain.ComunicationFolderImpl" discriminator-value="ComunicationFolderImpl"/>
21
        <subclass name="pt.estgp.estgweb.domain.ComunicationFolderImpl" discriminator-value="ComunicationFolderImpl"/>
22
    </class>
22
    </class>
23
 
23
 
24
</hibernate-mapping>
24
</hibernate-mapping>