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