Rev 1973 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
887 | 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.Configuration" table="configuration" abstract="true"> |
||
8 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</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"/> |
887 | jmachado | 15 | <property name="saveDate" type="timestamp"/> |
16 | <property name="interfaceImportYear" type="string"/> |
||
1017 | jmachado | 17 | |
18 | <!-- IMPORTS CONFIGS --> |
||
887 | jmachado | 19 | <property name="importsDefaultImportYear" type="string"/> |
1017 | jmachado | 20 | <property name="sigesWebServicesWsdl" type="string"> |
1283 | jmachado | 21 | <column name="sigesWebServicesWsdl" /> |
1017 | jmachado | 22 | </property> |
23 | <property name="sigesInstitutionCode" type="integer"> |
||
24 | <column name="sigesInstitutionCode" default="1"/> |
||
25 | </property> |
||
26 | <property name="nationalInstitutionCode" type="integer"> |
||
27 | <column name="nationalInstitutionCode" default="3122"/> |
||
28 | </property> |
||
1015 | jmachado | 29 | |
30 | <!--CourseUnitEvaluation formatImportYear--> |
||
31 | <property name="courseUnitEvaluationActiveYear" type="string"/> |
||
1070 | jmachado | 32 | <property name="courseUnitEvaluationActiveDegrees" type="string"/> |
1077 | jmachado | 33 | <property name="courseUnitEvaluationActiveCourseIds" type="string"/> |
1015 | jmachado | 34 | |
1312 | jmachado | 35 | <property name="cursosFicticios" type="string"/> |
36 | |||
1096 | jmachado | 37 | <property name="openInfoIntranet" type="string"> |
38 | <column name="openInfoIntranet" sql-type="TEXT"/> |
||
39 | </property> |
||
40 | |||
1988 | grupo4 | 41 | |
42 | |||
43 | |||
44 | <property name="courseReportImportYear" type="string"> |
||
45 | <column name="courseReportImportYear" default="201617" /> |
||
46 | </property> |
||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
1048 | jmachado | 53 | <many-to-one name="configurationGrades" class="pt.estgp.estgweb.domain.ConfigurationGrades" lazy="proxy" outer-join="false"/> |
887 | jmachado | 54 | <subclass name="pt.estgp.estgweb.domain.ConfigurationImpl" discriminator-value="ConfigurationImpl"/> |
55 | </class> |
||
1048 | jmachado | 56 | |
57 | <class name="pt.estgp.estgweb.domain.ConfigurationGrades" table="configuration_grades" abstract="true"> |
||
58 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
||
59 | <meta attribute="scope-class">public abstract</meta> |
||
60 | <id name="id" type="long"> |
||
61 | <generator class="native"/> |
||
62 | </id> |
||
63 | <discriminator column="discrimitator"/> |
||
1549 | jmachado | 64 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
1048 | jmachado | 65 | <property name="saveDate" type="timestamp"/> |
66 | <set name="epocasAvaliacao" order-by="codigoEpoca asc" lazy="true"> |
||
67 | <key column="confGrade"/> |
||
68 | <one-to-many class="pt.estgp.estgweb.domain.ConfigurationGradesEpocaAvaliacao"/> |
||
69 | </set> |
||
70 | <set name="statusEpoca" order-by="status asc" lazy="true"> |
||
71 | <key column="confGrade"/> |
||
72 | <one-to-many class="pt.estgp.estgweb.domain.ConfigurationGradesStatusEpoca"/> |
||
73 | </set> |
||
74 | |||
75 | <subclass name="pt.estgp.estgweb.domain.ConfigurationGradesImpl" discriminator-value="ConfigurationGradesImpl"/> |
||
76 | </class> |
||
77 | |||
78 | <class name="pt.estgp.estgweb.domain.ConfigurationGradesEpocaAvaliacao" table="configuration_grades_epoca_aval" abstract="true"> |
||
79 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
||
80 | <meta attribute="scope-class">public abstract</meta> |
||
81 | <id name="id" type="long"> |
||
82 | <generator class="native"/> |
||
83 | </id> |
||
84 | <discriminator column="discrimitator"/> |
||
1549 | jmachado | 85 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
1048 | jmachado | 86 | <property name="saveDate" type="timestamp"/> |
87 | <property name="codigoEpoca" type="string"/> |
||
88 | <property name="codigoMomento" type="string"/> |
||
89 | <property name="descricao" type="string"/> |
||
90 | <property name="obs" type="string"/> |
||
91 | |||
92 | <subclass name="pt.estgp.estgweb.domain.ConfigurationGradesEpocaAvaliacaoImpl" discriminator-value="ConfigurationGradesEpocaAvaliacaoImpl"/> |
||
93 | </class> |
||
94 | |||
95 | <class name="pt.estgp.estgweb.domain.ConfigurationGradesStatusEpoca" table="configuration_grades_status_epoca" abstract="true"> |
||
96 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
||
97 | <meta attribute="scope-class">public abstract</meta> |
||
98 | <id name="id" type="long"> |
||
99 | <generator class="native"/> |
||
100 | </id> |
||
101 | <discriminator column="discrimitator"/> |
||
1549 | jmachado | 102 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
1048 | jmachado | 103 | <property name="saveDate" type="timestamp"/> |
104 | <property name="status" type="string"/> |
||
105 | <property name="descricao" type="string"/> |
||
106 | <property name="obs" type="string"/> |
||
107 | <subclass name="pt.estgp.estgweb.domain.ConfigurationGradesStatusEpocaImpl" discriminator-value="ConfigurationGradesStatusEpocaImpl"/> |
||
108 | </class> |
||
109 | |||
1069 | jmachado | 110 | |
111 | <class name="pt.estgp.estgweb.domain.ConfigurationDirectory" table="configuration_directory" abstract="true"> |
||
112 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
||
113 | <meta attribute="scope-class">public abstract</meta> |
||
114 | <id name="id" type="long"> |
||
115 | <generator class="native"/> |
||
116 | </id> |
||
117 | <discriminator column="discrimitator"/> |
||
1549 | jmachado | 118 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
1069 | jmachado | 119 | <property name="saveDate" type="timestamp"/> |
120 | <property name="idDir" type="string"/> |
||
121 | <property name="xml" type="text"> |
||
122 | <column name="xml" sql-type="TEXT"/> |
||
123 | </property> |
||
124 | <property name="descricao" type="string"/> |
||
1312 | jmachado | 125 | <property name="fixedIdDir" type="boolean"> |
126 | <column name="fixedIdDir" default="false"/> |
||
127 | </property> |
||
1069 | jmachado | 128 | <subclass name="pt.estgp.estgweb.domain.ConfigurationDirectoryImpl" discriminator-value="ConfigurationDirectoryImpl"/> |
129 | </class> |
||
130 | |||
1283 | jmachado | 131 | <class name="pt.estgp.estgweb.domain.UserRoleConfig" table="user_role_config" abstract="true"> |
132 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
||
133 | <meta attribute="scope-class">public abstract</meta> |
||
134 | <id name="id" type="long"> |
||
135 | <generator class="native"/> |
||
136 | </id> |
||
137 | |||
138 | <discriminator column="discrimitator"/> |
||
1549 | jmachado | 139 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
1283 | jmachado | 140 | <property name="saveDate" type="timestamp"/> |
141 | <property name="role" type="string" unique="true"/> |
||
142 | <property name="value" type="string"/> |
||
143 | <property name="valuePt" type="string"/> |
||
144 | <property name="valueEn" type="string"/> |
||
145 | <property name="valueEs" type="string"/> |
||
146 | <property name="valueFr" type="string"/> |
||
147 | <property name="obs" type="string"/> |
||
148 | <property name="valid" type="boolean"> |
||
149 | <column name="valid" default="true"/> |
||
150 | </property> |
||
151 | <subclass name="pt.estgp.estgweb.domain.UserRoleConfigImpl" discriminator-value="UserRoleConfigImpl"/> |
||
152 | </class> |
||
153 | |||
154 | |||
1728 | jmachado | 155 | <class name="pt.estgp.estgweb.domain.ConfigurationSeparator" table="configuration_separator" abstract="true"> |
156 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
||
157 | <meta attribute="scope-class">public abstract</meta> |
||
158 | <id name="id" type="long"> |
||
159 | <generator class="native"/> |
||
160 | </id> |
||
161 | <discriminator column="discrimitator"/> |
||
162 | <timestamp source="db" name="updateDate" unsaved-value="null"/> |
||
163 | <property name="saveDate" type="timestamp"/> |
||
164 | |||
165 | <property name="name" type="string"/> |
||
166 | <property name="nameEn" type="string"/> |
||
167 | <property name="nameEs" type="string"/> |
||
168 | <property name="nameFr" type="string"/> |
||
169 | |||
170 | <property name="description" type="string"> |
||
171 | <column name="description" sql-type="TEXT"/> |
||
172 | </property> |
||
173 | |||
1729 | jmachado | 174 | <property name="active" type="boolean"/> |
1737 | jmachado | 175 | <property name="position" type="integer"> |
176 | <column name="position" sql-type="INT(11)" default="0"/> |
||
177 | </property> |
||
1729 | jmachado | 178 | |
179 | <property name="showInBaco" type="boolean"/> |
||
180 | <property name="showInPae" type="boolean"/> |
||
181 | |||
182 | <property name="showStudents" type="boolean"/> |
||
183 | <property name="showTeachers" type="boolean"/> |
||
184 | <property name="showWorkers" type="boolean"/> |
||
185 | |||
186 | |||
1731 | jmachado | 187 | <many-to-one name="pageSection" class="pt.estgp.estgweb.domain.PageSectionImpl" outer-join="true" lazy="false"/> |
1729 | jmachado | 188 | <set name="schools" lazy="true" table="configuration_separators_schools"> |
1728 | jmachado | 189 | <key column="configseparator_id"/> |
190 | <many-to-many column="school_id" class="pt.estgp.estgweb.domain.CourseSchool"/> |
||
191 | </set> |
||
192 | <subclass name="pt.estgp.estgweb.domain.ConfigurationSeparatorImpl" discriminator-value="ConfigurationSeparatorImpl"/> |
||
193 | </class> |
||
194 | |||
195 | |||
196 | |||
887 | jmachado | 197 | </hibernate-mapping> |