Rev 1572 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1325 | 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 | |||
1586 | jmachado | 8 | <class name="pt.estgp.estgweb.domain.OlapHistoryDimension" table="olap_e_timeline" abstract="true"> |
9 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
10 | <meta attribute="scope-class">public abstract</meta> |
||
1325 | jmachado | 11 | <id name="id" type="long" unsaved-value="0"> |
12 | <generator class="native"/> |
||
13 | </id> |
||
1586 | jmachado | 14 | <discriminator column="discrimitator"/> |
1544 | jmachado | 15 | <property name="nome" type="string" index="nomeIndex"/> |
1325 | jmachado | 16 | <property name="descricao" type="string"/> |
1545 | jmachado | 17 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 18 | <subclass name="pt.estgp.estgweb.domain.OlapHistoryDimensionImpl" discriminator-value="OlapHistoryDimensionImpl"/> |
1325 | jmachado | 19 | </class> |
20 | |||
1326 | jmachado | 21 | |
22 | |||
23 | |||
1325 | jmachado | 24 | |
1544 | jmachado | 25 | <!--Questionario Dimensao--> |
1586 | jmachado | 26 | <class name="pt.estgp.estgweb.domain.OlapEntityQuestionario" table="olap_e_quest" abstract="true"> |
27 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
28 | <meta attribute="scope-class">public abstract</meta> |
||
1325 | jmachado | 29 | <id name="id" type="long" unsaved-value="0"> |
30 | <generator class="native"/> |
||
31 | </id> |
||
1586 | jmachado | 32 | <discriminator column="discrimitator"/> |
1326 | jmachado | 33 | <property name="ano" type="string" index="anoIndex"/> |
34 | <property name="semestre" type="string" index="semestreIndex"/> |
||
1566 | jmachado | 35 | <property name="generatedTime" type="timestamp" index="associatedTimeIndex"/> |
1544 | jmachado | 36 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 37 | <subclass name="pt.estgp.estgweb.domain.OlapEntityQuestionarioImpl" discriminator-value="OlapEntityQuestionarioImpl"/> |
1325 | jmachado | 38 | </class> |
39 | |||
1544 | jmachado | 40 | |
41 | |||
42 | |||
43 | <!--CURSO DIMENSAO--> |
||
1586 | jmachado | 44 | <class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" table="olap_e_quest_curso" abstract="true"> |
45 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
46 | <meta attribute="scope-class">public abstract</meta> |
||
1325 | jmachado | 47 | <id name="id" type="long" unsaved-value="0"> |
48 | <generator class="native"/> |
||
49 | </id> |
||
1586 | jmachado | 50 | <discriminator column="discrimitator"/> |
1546 | jmachado | 51 | <property name="codigoCurso" type="string" index="codigoCursoIndex"/> |
1544 | jmachado | 52 | <property name="nomeCurso" type="string" index="nomeCursoIndex"/> |
53 | |||
1546 | jmachado | 54 | <property name="codigoInstituicao" type="string" index="codigoInstituicaoIndex"/> |
1544 | jmachado | 55 | <property name="nomeInstituicao" type="string" index="nomeInstituicaoIndex"/> |
1565 | jmachado | 56 | <property name="codigoNacionalInstituicao" type="string" index="codigoNacionalInstituicaoIndex"/> |
1544 | jmachado | 57 | |
1546 | jmachado | 58 | <property name="degree" type="string" index="degreeIndex"> |
59 | <column name="degree" index="degreeIndex" /> |
||
60 | </property> |
||
61 | <property name="departament" type="string" index="departamentIndex"/> |
||
1544 | jmachado | 62 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 63 | <subclass name="pt.estgp.estgweb.domain.OlapEntityQuestionarioCursoImpl" discriminator-value="OlapEntityQuestionarioCursoImpl"/> |
1325 | jmachado | 64 | </class> |
1326 | jmachado | 65 | |
1544 | jmachado | 66 | |
67 | |||
68 | |||
69 | |||
70 | |||
71 | <!--Unidade Dimensao--> |
||
1586 | jmachado | 72 | <class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" table="olap_e_quest_unit" abstract="true"> |
73 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
74 | <meta attribute="scope-class">public abstract</meta> |
||
1325 | jmachado | 75 | <id name="id" type="long" unsaved-value="0"> |
76 | <generator class="native"/> |
||
77 | </id> |
||
1586 | jmachado | 78 | <discriminator column="discrimitator"/> |
1547 | jmachado | 79 | <property name="codigo" type="string" index="codigoIndex"/> |
1325 | jmachado | 80 | <property name="nome" type="string"/> |
1546 | jmachado | 81 | <!-- S1 S2 A T1 T2 T3 T4 --> |
82 | <property name="periodoSigesS1ouS2ouAouT1aT4" type="string" index="persigesIndex"/> |
||
83 | |||
84 | <!-- S1, S2, S3 ..., T1, T2, T3 ... A1, A2--> |
||
85 | <property name="periodoPlanoS1T8" type="string" index="perplanIndex"/> |
||
86 | |||
87 | <!-- 1, 2, 3--> |
||
1547 | jmachado | 88 | <property name="anoPlano1a4" type="int" index="anoplaIndex"/> |
1546 | jmachado | 89 | |
90 | <!-- S1 = 1, S2 = 2, S3 = 3, S4 = 4 ...T1 e T2 = 1, T2 e T3 = 2, T4 e T5 = 3 ... --> |
||
1547 | jmachado | 91 | <property name="semestrePlanoConvertido1a6" type="int" index="semplaconvIndex"/> |
1546 | jmachado | 92 | |
93 | |||
94 | <!-- S1 = 1, S2 = 2, S3 = 1, S4 = 2 ... T1 e T2 = 1, T2 e T3 = 2, T4 e T5 = 1, T6 e T7 = 2--> |
||
1547 | jmachado | 95 | <property name="semestrePlanoAbsoluto1ou2" type="int" index="semplaabsIndex"/> |
1546 | jmachado | 96 | |
97 | |||
1544 | jmachado | 98 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 99 | <subclass name="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidadeImpl" discriminator-value="OlapEntityQuestionarioUnidadeImpl"/> |
1325 | jmachado | 100 | </class> |
101 | |||
1544 | jmachado | 102 | |
103 | |||
104 | |||
105 | <!--Tipologia Dimensao--> |
||
1586 | jmachado | 106 | <class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" table="olap_e_quest_tipologia" abstract="true"> |
107 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
108 | <meta attribute="scope-class">public abstract</meta> |
||
1325 | jmachado | 109 | <id name="id" type="long" unsaved-value="0"> |
110 | <generator class="native"/> |
||
111 | </id> |
||
1586 | jmachado | 112 | <discriminator column="discrimitator"/> |
1545 | jmachado | 113 | <property name="codigoTipologia" type="string" index="codigoIndex"/> |
1544 | jmachado | 114 | <property name="descricao" type="string"/> |
1545 | jmachado | 115 | <property name="codigoTurma" type="string" index="codigoIndex"/> |
1325 | jmachado | 116 | |
1547 | jmachado | 117 | <property name="codigoSiges" type="string" index="codigoIndex"/> |
1325 | jmachado | 118 | <property name="nome" type="string"/> |
119 | <property name="bi" type="string"/> |
||
120 | <property name="username" type="string"/> |
||
1326 | jmachado | 121 | <property name="email" type="string"/> |
1544 | jmachado | 122 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 123 | <subclass name="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologiaImpl" discriminator-value="OlapEntityQuestionarioTipologiaImpl"/> |
1325 | jmachado | 124 | </class> |
125 | |||
126 | |||
1586 | jmachado | 127 | <class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPergunta" table="olap_e_quest_pgrp" abstract="true"> |
128 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
129 | <meta attribute="scope-class">public abstract</meta> |
||
1549 | jmachado | 130 | <id name="id" type="long" unsaved-value="0"> |
131 | <generator class="native"/> |
||
132 | </id> |
||
1586 | jmachado | 133 | <discriminator column="discrimitator"/> |
1549 | jmachado | 134 | <property name="grupoCode" type="string" index="grupoCodeIndex"/> |
135 | <property name="grupoTitle" type="string" index="grupoTitleIndex"/> |
||
1563 | jmachado | 136 | <property name="subGrupoCode" type="string" index="subGrupoCodeIndex"/> |
137 | <property name="subGrupoTitle" type="string" index="subGrupoTitleIndex"/> |
||
1549 | jmachado | 138 | <property name="pergunta" type="string" index="perguntaIndex"/> |
139 | <property name="numero" type="string" index="numeroIndex"/> |
||
140 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
||
1586 | jmachado | 141 | <subclass name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaImpl" discriminator-value="OlapEntityQuestionarioPerguntaImpl"/> |
1549 | jmachado | 142 | </class> |
1544 | jmachado | 143 | |
1586 | jmachado | 144 | <class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaEsforco" table="olap_e_quest_pgrp_esforco" abstract="true"> |
145 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
146 | <meta attribute="scope-class">public abstract</meta> |
||
1572 | jmachado | 147 | <id name="id" type="long" unsaved-value="0"> |
148 | <generator class="native"/> |
||
149 | </id> |
||
1586 | jmachado | 150 | <discriminator column="discrimitator"/> |
1572 | jmachado | 151 | <property name="grupoCode" type="string" index="grupoCodeIndex"/> |
152 | <property name="grupoTitle" type="string" index="grupoTitleIndex"/> |
||
153 | <property name="subGrupoCode" type="string" index="subGrupoCodeIndex"/> |
||
154 | <property name="subGrupoTitle" type="string" index="subGrupoTitleIndex"/> |
||
155 | <property name="pergunta" type="string" index="perguntaIndex"/> |
||
156 | <property name="numero" type="string" index="numeroIndex"/> |
||
157 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
||
1586 | jmachado | 158 | <subclass name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaEsforcoImpl" discriminator-value="OlapEntityQuestionarioPerguntaEsforcoImpl"/> |
1572 | jmachado | 159 | </class> |
160 | |||
1586 | jmachado | 161 | |
162 | |||
163 | <class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioUser" table="olap_e_quest_user" abstract="true"> |
||
164 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapDimensionImpl</meta> |
||
165 | <meta attribute="scope-class">public abstract</meta> |
||
1549 | jmachado | 166 | <id name="id" type="long" unsaved-value="0"> |
167 | <generator class="native"/> |
||
168 | </id> |
||
1586 | jmachado | 169 | <discriminator column="discrimitator"/> |
1553 | jmachado | 170 | <property name="sigesCode" type="string" index="sigesCodeIndex"/> |
171 | <property name="distrito" type="string" index="distritoIndex"/> |
||
172 | <property name="concelho" type="string" index="concelhoIndex"/> |
||
173 | <property name="zip" type="string" index="zipIndex"/> |
||
174 | <property name="zipInt" type="int" index="zipIntIndex"> |
||
175 | <column name="zipInt" default="0"/> |
||
176 | </property> |
||
177 | <property name="country" type="string" index="countryIndex"/> |
||
178 | <property name="nacionalidade" type="string" index="nacionalidadeIndex"/> |
||
179 | <property name="sex" type="string" index="sexIndex"/> |
||
1549 | jmachado | 180 | <property name="birthDate" type="date"/> |
181 | <property name="tipoAlunoTrabalhadorEstudante" type="boolean"> |
||
182 | <column name="tipoAlunoTrabalhadorEstudante" default="false"/> |
||
183 | </property> |
||
1553 | jmachado | 184 | <property name="tipoAlunoErasmus" type="boolean" index="tipoAlunoErasmusIndex"> |
1549 | jmachado | 185 | <column name="tipoAlunoErasmus" default="false"/> |
186 | </property> |
||
1553 | jmachado | 187 | <property name="tipoAlunoNormal" type="boolean" index="tipoAlunoNormalIndex"> |
1549 | jmachado | 188 | <column name="tipoAlunoNormal" default="false"/> |
189 | </property> |
||
1553 | jmachado | 190 | <property name="tipoAlunoBolseiro" type="boolean" index="tipoAlunoBolseiroIndex"> |
1549 | jmachado | 191 | <column name="tipoAlunoBolseiro" default="false"/> |
192 | </property> |
||
1553 | jmachado | 193 | <property name="tipoAlunoMilitar" type="boolean" index="tipoAlunoMilitarIndex"> |
1549 | jmachado | 194 | <column name="tipoAlunoMilitar" default="false"/> |
195 | </property> |
||
1553 | jmachado | 196 | <property name="tipoAlunoDirigenteAssociativo" type="boolean" index="tipoAlunoDirigenteAssociativoIndex"> |
1549 | jmachado | 197 | <column name="tipoAlunoDirigenteAssociativo" default="false"/> |
198 | </property> |
||
1553 | jmachado | 199 | <property name="tipoAlunoDeficiente" type="boolean" index="tipoAlunoDeficienteIndex"> |
1549 | jmachado | 200 | <column name="tipoAlunoDeficiente" default="false"/> |
201 | </property> |
||
1553 | jmachado | 202 | <property name="tipoAlunoBombeiro" type="boolean" index="tipoAlunoBombeiroIndex"> |
1549 | jmachado | 203 | <column name="tipoAlunoBombeiro" default="false"/> |
204 | </property> |
||
1553 | jmachado | 205 | <property name="tipoAlunoVascodagama" type="boolean" index="tipoAlunoVascodagamaIndex"> |
1549 | jmachado | 206 | <column name="tipoAlunoVascodagama" default="false"/> |
207 | </property> |
||
1553 | jmachado | 208 | <property name="propinasEmDia" type="boolean" index="propinasEmDiaIndex"> |
1549 | jmachado | 209 | <column name="propinasEmDia" default="false"/> |
210 | </property> |
||
1544 | jmachado | 211 | |
1553 | jmachado | 212 | <property name="academicDegree" type="string" index="academicDegreeIndex"/> |
213 | <property name="scholarDegree" type="string" index="scholarDegreeIndex"/> |
||
1549 | jmachado | 214 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 215 | <subclass name="pt.estgp.estgweb.domain.OlapEntityQuestionarioUserImpl" discriminator-value="OlapEntityQuestionarioUserImpl"/> |
1544 | jmachado | 216 | |
1549 | jmachado | 217 | </class> |
1545 | jmachado | 218 | |
1549 | jmachado | 219 | <!-- FACTOS EM ESTRELA --> |
220 | |||
221 | |||
222 | |||
1586 | jmachado | 223 | <class name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioCurso" table="olap_star_quest_curso" abstract="true"> |
224 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapFactImpl</meta> |
||
225 | <meta attribute="scope-class">public abstract</meta> |
||
1549 | jmachado | 226 | <id name="id" type="long" unsaved-value="0"> |
227 | <generator class="native"/> |
||
228 | </id> |
||
1586 | jmachado | 229 | <discriminator column="discrimitator"/> |
1549 | jmachado | 230 | |
231 | <!-- Atencao estes valores sao apenas das entidades olap criadas, para proceder às contagens |
||
232 | deve usar a tabela de factos de respostas, as tipologias nao sao unicas, correspondem |
||
233 | na realidade ao numero de questionarios / docente --> |
||
234 | <property name="unidades" type="integer" index="unidadesIndex"/> |
||
235 | <property name="tipologias" type="integer" index="tipologiasIndex"/> |
||
236 | <property name="respostasCandidatas" type="integer" index="respostasCandidatasIndex"/> |
||
237 | <property name="respostasObtidas" type="integer" index="respostasObtidasIndex"/> |
||
238 | <!--Associação directa às classes de resposta--> |
||
239 | |||
240 | <many-to-one name="olapQuestionario" class="pt.estgp.estgweb.domain.OlapEntityQuestionario" outer-join="false" lazy="proxy"/> |
||
241 | <many-to-one name="olapCurso" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" outer-join="false" lazy="proxy"/> |
||
242 | <!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos--> |
||
243 | <many-to-one name="olapTimeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/> |
||
244 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
||
1586 | jmachado | 245 | <subclass name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioCursoImpl" discriminator-value="OlapStarFactQuestionarioCursoImpl"/> |
1549 | jmachado | 246 | </class> |
1586 | jmachado | 247 | |
248 | |||
249 | <class name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioUnidade" table="olap_star_quest_unidade" abstract="true"> |
||
250 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapFactImpl</meta> |
||
251 | <meta attribute="scope-class">public abstract</meta> |
||
1549 | jmachado | 252 | <id name="id" type="long" unsaved-value="0"> |
253 | <generator class="native"/> |
||
254 | </id> |
||
1586 | jmachado | 255 | <discriminator column="discrimitator"/> |
1549 | jmachado | 256 | <!-- Atencao estes valores sao apenas das entidades olap criadas, para proceder às contagens |
257 | deve usar a tabela de factos de respostas, as tipologias nao sao unicas, correspondem |
||
258 | na realidade ao numero de questionarios / docente --> |
||
259 | <property name="tipologias" type="integer" index="tipologiasIndex"/> |
||
260 | <property name="respostasCandidatas" type="integer" index="respostasCandidatasIndex"/> |
||
261 | <property name="respostasObtidas" type="integer" index="respostasObtidasIndex"/> |
||
262 | <!--Associação directa às classes de resposta--> |
||
263 | <many-to-one name="olapQuestionario" class="pt.estgp.estgweb.domain.OlapEntityQuestionario" outer-join="false" lazy="proxy"/> |
||
264 | <many-to-one name="olapCurso" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" outer-join="false" lazy="proxy"/> |
||
265 | <many-to-one name="olapUnidade" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" outer-join="false" lazy="proxy"/> |
||
266 | <!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos--> |
||
267 | <many-to-one name="olapTimeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/> |
||
268 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
||
1586 | jmachado | 269 | <subclass name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioUnidadeImpl" discriminator-value="OlapStarFactQuestionarioUnidadeImpl"/> |
1549 | jmachado | 270 | </class> |
1586 | jmachado | 271 | |
272 | |||
273 | |||
274 | <class name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioTipologia" table="olap_star_quest_tipologia" abstract="true"> |
||
275 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapFactImpl</meta> |
||
276 | <meta attribute="scope-class">public abstract</meta> |
||
1549 | jmachado | 277 | <id name="id" type="long" unsaved-value="0"> |
278 | <generator class="native"/> |
||
279 | </id> |
||
1586 | jmachado | 280 | <discriminator column="discrimitator"/> |
1549 | jmachado | 281 | <!-- Atencao estes valores sao apenas das entidades olap criadas, para proceder às contagens |
282 | deve usar a tabela de factos de respostas, as tipologias nao sao unicas, correspondem |
||
283 | na realidade ao numero de questionarios / docente --> |
||
284 | <property name="respostasCandidatas" type="integer" index="respostasCandidatasIndex"/> |
||
285 | <property name="respostasObtidas" type="integer" index="respostasObtidasIndex"/> |
||
286 | <!--Associação directa às classes de resposta--> |
||
287 | <many-to-one name="olapQuestionario" class="pt.estgp.estgweb.domain.OlapEntityQuestionario" outer-join="false" lazy="proxy"/> |
||
288 | <many-to-one name="olapCurso" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" outer-join="false" lazy="proxy"/> |
||
289 | <many-to-one name="olapUnidade" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" outer-join="false" lazy="proxy"/> |
||
290 | <many-to-one name="olapTipologia" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" outer-join="false" lazy="proxy"/> |
||
291 | <!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos--> |
||
292 | <many-to-one name="olapTimeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/> |
||
293 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
||
1586 | jmachado | 294 | <subclass name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioTipologiaImpl" discriminator-value="OlapStarFactQuestionarioTipologiaImpl"/> |
1549 | jmachado | 295 | </class> |
296 | |||
1586 | jmachado | 297 | |
298 | |||
299 | <class name="pt.estgp.estgweb.domain.OlapStarFactQuestionario" table="olap_star_quest" abstract="true"> |
||
300 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapFactImpl</meta> |
||
301 | <meta attribute="scope-class">public abstract</meta> |
||
1325 | jmachado | 302 | <id name="id" type="long" unsaved-value="0"> |
303 | <generator class="native"/> |
||
304 | </id> |
||
1586 | jmachado | 305 | <discriminator column="discrimitator"/> |
1326 | jmachado | 306 | <property name="respondido" type="boolean" index="respondidoIndex"/> |
307 | <property name="dataInicio" type="timestamp"/> |
||
1331 | jmachado | 308 | <property name="tempoTotal" type="long"/> |
1326 | jmachado | 309 | <property name="dataFim" type="timestamp"/> |
310 | |||
1545 | jmachado | 311 | <!--Associação directa às classes de resposta--> |
312 | <many-to-one name="olapTipologia" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" outer-join="false" lazy="proxy"/> |
||
313 | <many-to-one name="olapUnidade" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" outer-join="false" lazy="proxy"/> |
||
1547 | jmachado | 314 | <many-to-one name="olapCurso" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" outer-join="false" lazy="proxy"/> |
1545 | jmachado | 315 | <many-to-one name="olapQuestionario" class="pt.estgp.estgweb.domain.OlapEntityQuestionario" outer-join="false" lazy="proxy"/> |
1326 | jmachado | 316 | |
1545 | jmachado | 317 | <!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos--> |
318 | <many-to-one name="olapTimeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/> |
||
1325 | jmachado | 319 | |
1545 | jmachado | 320 | <!--Desmultiplicadas das classes de resposta--> |
321 | |||
322 | <many-to-one name="olapPerfilUser" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUser" outer-join="false" lazy="proxy"/> |
||
323 | |||
1544 | jmachado | 324 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 325 | <subclass name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioImpl" discriminator-value="OlapStarFactQuestionarioImpl"/> |
1544 | jmachado | 326 | |
1545 | jmachado | 327 | |
328 | </class> |
||
329 | |||
1586 | jmachado | 330 | <class name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioAnswer" table="olap_star_quest_answer" abstract="true"> |
331 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapFactImpl</meta> |
||
332 | <meta attribute="scope-class">public abstract</meta> |
||
1326 | jmachado | 333 | <id name="id" type="long" unsaved-value="0"> |
334 | <generator class="native"/> |
||
335 | </id> |
||
1586 | jmachado | 336 | <discriminator column="discrimitator"/> |
1331 | jmachado | 337 | <property name="dataEvento" type="timestamp"/> |
338 | <property name="tempoLevado" type="long"/> |
||
339 | <property name="ordemResposta" type="int"/> |
||
1326 | jmachado | 340 | <property name="intResposta" type="int" index="intResponseIndex"/> |
341 | |||
1544 | jmachado | 342 | <!--Associação directa às classes de resposta--> |
1545 | jmachado | 343 | <many-to-one name="olapTipologia" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" outer-join="false" lazy="proxy"/> |
344 | <many-to-one name="olapUnidade" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" outer-join="false" lazy="proxy"/> |
||
1547 | jmachado | 345 | <many-to-one name="olapCurso" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" outer-join="false" lazy="proxy"/> |
1545 | jmachado | 346 | <many-to-one name="olapQuestionario" class="pt.estgp.estgweb.domain.OlapEntityQuestionario" outer-join="false" lazy="proxy"/> |
1326 | jmachado | 347 | |
1544 | jmachado | 348 | <!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos--> |
1545 | jmachado | 349 | <many-to-one name="olapTimeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/> |
1544 | jmachado | 350 | |
351 | <!--Desmultiplicadas das classes de resposta--> |
||
1545 | jmachado | 352 | <many-to-one name="olapPergunta" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioPergunta" outer-join="false" lazy="proxy"/> |
353 | <many-to-one name="olapPerfilUser" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUser" outer-join="false" lazy="proxy"/> |
||
354 | |||
1544 | jmachado | 355 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
1586 | jmachado | 356 | <subclass name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioAnswerImpl" discriminator-value="OlapStarFactQuestionarioAnswerImpl"/> |
1544 | jmachado | 357 | |
1545 | jmachado | 358 | |
1326 | jmachado | 359 | </class> |
360 | |||
361 | |||
1544 | jmachado | 362 | |
1586 | jmachado | 363 | <class name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioAnswerEsforco" table="olap_star_quest_answer_esforco" abstract="true"> |
364 | <meta attribute="extends">pt.estgp.estgweb.domain.OlapFactImpl</meta> |
||
365 | <meta attribute="scope-class">public abstract</meta> |
||
1572 | jmachado | 366 | <id name="id" type="long" unsaved-value="0"> |
367 | <generator class="native"/> |
||
368 | </id> |
||
1586 | jmachado | 369 | <discriminator column="discrimitator"/> |
1572 | jmachado | 370 | <property name="dataEvento" type="timestamp"/> |
371 | <property name="tempoLevado" type="long"/> |
||
372 | <property name="ordemResposta" type="int"/> |
||
373 | <property name="intResposta" type="int" index="intResponseIndex"/> |
||
374 | |||
375 | <!--Associação directa às classes de resposta--> |
||
376 | <many-to-one name="olapTipologia" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" outer-join="false" lazy="proxy"/> |
||
377 | <many-to-one name="olapUnidade" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" outer-join="false" lazy="proxy"/> |
||
378 | <many-to-one name="olapCurso" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" outer-join="false" lazy="proxy"/> |
||
379 | <many-to-one name="olapQuestionario" class="pt.estgp.estgweb.domain.OlapEntityQuestionario" outer-join="false" lazy="proxy"/> |
||
380 | |||
381 | <!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos--> |
||
382 | <many-to-one name="olapTimeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/> |
||
383 | |||
384 | <!--Desmultiplicadas das classes de resposta--> |
||
385 | <many-to-one name="olapPerguntaEsforco" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaEsforco" outer-join="false" lazy="proxy"/> |
||
386 | <many-to-one name="olapPerfilUser" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUser" outer-join="false" lazy="proxy"/> |
||
387 | |||
388 | <many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/> |
||
1586 | jmachado | 389 | <subclass name="pt.estgp.estgweb.domain.OlapStarFactQuestionarioAnswerEsforcoImpl" discriminator-value="OlapStarFactQuestionarioAnswerEsforcoImpl"/> |
1572 | jmachado | 390 | |
391 | |||
392 | </class> |
||
393 | |||
394 | |||
395 | |||
1325 | jmachado | 396 | </hibernate-mapping> |