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