Rev 1814 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1312 | 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.Page" table="page" abstract="true"> |
||
8 | <meta attribute="extends">pt.estgp.estgweb.domain.OwnedDomainObject</meta> |
||
9 | <meta attribute="scope-class">public abstract</meta> |
||
10 | <id name="id" type="long"> |
||
11 | <generator class="native"/> |
||
12 | </id> |
||
13 | <discriminator column="discrimitator"/> |
||
1549 | jmachado | 14 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
1312 | jmachado | 15 | <property name="saveDate" type="timestamp"/> |
16 | <property name="title" type="string"/> |
||
17 | <property name="code" type="string" unique="true"/> |
||
18 | <many-to-one name="pageSectionMaster" class="pt.estgp.estgweb.domain.PageSection" lazy="proxy" outer-join="false"/> |
||
19 | <subclass name="pt.estgp.estgweb.domain.PageImpl" discriminator-value="PageImpl"/> |
||
20 | </class> |
||
21 | <class name="pt.estgp.estgweb.domain.PageContent" table="page_content" abstract="true"> |
||
22 | <meta attribute="extends">pt.estgp.estgweb.domain.OwnedDomainObject</meta> |
||
23 | <meta attribute="scope-class">public abstract</meta> |
||
24 | <id name="id" type="long"> |
||
25 | <generator class="native"/> |
||
26 | </id> |
||
27 | <discriminator column="discrimitator"/> |
||
1549 | jmachado | 28 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
1312 | jmachado | 29 | <property name="saveDate" type="timestamp"/> |
30 | <property name="systemAuxiliaryCode" type="string"/> |
||
31 | <property name="title" type="string"/> |
||
32 | <property name="acl" type="string"> |
||
33 | <column name="acl" sql-type="MEDIUMTEXT"/> |
||
34 | </property> |
||
35 | <property name="visible" type="boolean" /> |
||
36 | <property name="description" type="string"> |
||
37 | <column name="description" sql-type="TEXT"/> |
||
38 | </property> |
||
39 | <property name="accessPolicyClass" type="string"/> |
||
1616 | jmachado | 40 | <property name="slug" type="string"/> |
41 | <property name="path" type="string" unique="true"> |
||
1636 | jmachado | 42 | <column name="path" sql-type="TEXT, add UNIQUE pathIndex(path(512))"/> |
1616 | jmachado | 43 | </property> |
1312 | jmachado | 44 | <many-to-one name="owner" class="pt.estgp.estgweb.domain.GenericUser" lazy="proxy" outer-join="false"/> |
45 | <many-to-one name="parent" class="pt.estgp.estgweb.domain.PageSection" lazy="proxy" outer-join="false"> |
||
46 | <column name="parentId"/> |
||
47 | </many-to-one> |
||
48 | <subclass name="pt.estgp.estgweb.domain.PageContentImpl" abstract="true"> |
||
49 | <meta attribute="scope-class">public abstract</meta> |
||
50 | <subclass name="pt.estgp.estgweb.domain.PageSection" abstract="true"> |
||
51 | <meta attribute="extends">pt.estgp.estgweb.domain.PageContentImpl</meta> |
||
52 | <meta attribute="scope-class">public abstract</meta> |
||
1616 | jmachado | 53 | <property name="topLayoutSection" type="boolean"> |
54 | <column name="topLayoutSection" default="true"/> |
||
55 | </property> |
||
56 | |||
1312 | jmachado | 57 | <list name="childs" cascade="none" lazy="true"> |
58 | <key column="parentId"/> |
||
59 | <index column="i"/> |
||
60 | <one-to-many class="pt.estgp.estgweb.domain.PageContent"/> |
||
61 | </list> |
||
62 | <set name="courseUnits" cascade="none" lazy="true" order-by="saveDate asc"> |
||
63 | <key column="unitContents"/> |
||
64 | <one-to-many class="pt.estgp.estgweb.domain.CourseUnit" /> |
||
65 | </set> |
||
66 | <set name="courses" cascade="none" lazy="true" order-by="saveDate asc"> |
||
67 | <key column="courseContents"/> |
||
68 | <one-to-many class="pt.estgp.estgweb.domain.Course" /> |
||
69 | </set> |
||
70 | <subclass name="pt.estgp.estgweb.domain.PageSectionImpl" discriminator-value="PageSectionImpl"/> |
||
71 | </subclass> |
||
72 | <subclass name="pt.estgp.estgweb.domain.PageExternalObject" abstract="true"> |
||
73 | <meta attribute="extends">pt.estgp.estgweb.domain.PageContentImpl</meta> |
||
74 | <meta attribute="scope-class">public abstract</meta> |
||
75 | <subclass name="pt.estgp.estgweb.domain.PageExternalObjectImpl" abstract="true"> |
||
76 | <meta attribute="scope-class">public abstract</meta> |
||
77 | <subclass name="pt.estgp.estgweb.domain.PageExternalUrl" abstract="true"> |
||
78 | <meta attribute="extends">pt.estgp.estgweb.domain.PageExternalObjectImpl</meta> |
||
79 | <meta attribute="scope-class">public abstract</meta> |
||
80 | <property name="url" type="string" /> |
||
81 | <subclass name="pt.estgp.estgweb.domain.PageExternalUrlImpl" discriminator-value="PageExternalUrlImpl"/> |
||
82 | </subclass> |
||
83 | <subclass name="pt.estgp.estgweb.domain.PageRepositoryFile" abstract="true"> |
||
84 | <meta attribute="extends">pt.estgp.estgweb.domain.PageExternalObjectImpl</meta> |
||
85 | <meta attribute="scope-class">public abstract</meta> |
||
1814 | jmachado | 86 | <property name="repositoryFileProxy" insert="false" update="false" |
87 | type="pt.estgp.estgweb.domain.typesgenservices.repositorydocuments.EnhancedRepositoryFileProxy" > |
||
88 | <meta attribute="property-type">pt.estgp.estgweb.domain.typesgenservices.repositorydocuments.RepositoryFileProxy</meta> |
||
89 | <column name="repositoryId" sql-type="VARCHAR(255)"/> |
||
90 | </property> |
||
1312 | jmachado | 91 | <property name="repositoryId" type="string" /> |
92 | <subclass name="pt.estgp.estgweb.domain.PageRepositoryFileImpl" discriminator-value="PageRepositoryFileImpl"/> |
||
93 | </subclass> |
||
1561 | jmachado | 94 | <subclass name="pt.estgp.estgweb.domain.PageText" abstract="true"> |
95 | <meta attribute="extends">pt.estgp.estgweb.domain.PageExternalObjectImpl</meta> |
||
96 | <meta attribute="scope-class">public abstract</meta> |
||
97 | <property name="html" type="string" > |
||
98 | <column name="html" sql-type="text"/> |
||
99 | </property> |
||
100 | <subclass name="pt.estgp.estgweb.domain.PageTextImpl" discriminator-value="PageTextImpl"/> |
||
101 | </subclass> |
||
1312 | jmachado | 102 | </subclass> |
103 | </subclass> |
||
104 | </subclass> |
||
105 | </class> |
||
106 | </hibernate-mapping> |