Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1535 → Rev 1544

/branches/v3/impl/src/hbm/pt/estgp/estgweb/domain/OlapQuestionarios.hbm.xml
9,82 → 9,83
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="nome" type="string"/>
<property name="nome" type="string" index="nomeIndex"/>
<property name="descricao" type="string"/>
</class>
 
 
 
 
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioInstituicao" table="olap_e_quest_inst">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="codigo" type="long"/>
<property name="nome" type="string"/>
</class>
 
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioAno" table="olap_e_quest_ano">
<!--Questionario Dimensao-->
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionario" table="olap_e_quest">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="ano" type="string" index="anoIndex"/>
</class>
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPeriodo" table="olap_e_quest_periodo">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="semestre" type="string" index="semestreIndex"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
</class>
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioCursoDegree" table="olap_e_quest_curso_degree">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="degree" type="string" index="degreeIndex"/>
</class>
 
 
 
 
<!--CURSO DIMENSAO-->
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" table="olap_e_quest_curso">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="codigo" type="long" index="codigoIndex"/>
<property name="nome" type="string"/>
<property name="codigoCurso" type="long" index="codigoCursoIndex"/>
<property name="nomeCurso" type="string" index="nomeCursoIndex"/>
 
<property name="codigoInstituicao" type="long" index="codigoInstituicaoIndex"/>
<property name="nomeInstituicao" type="string" index="nomeInstituicaoIndex"/>
 
<property name="degree" type="string" index="degreeIndex"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
</class>
 
 
 
 
 
 
<!--Unidade Dimensao-->
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" table="olap_e_quest_unit">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="codigo" type="long" index="codigoIndex"/>
<property name="nome" type="string"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
</class>
 
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioTurma" table="olap_e_quest_turma">
 
 
 
<!--Tipologia Dimensao-->
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" table="olap_e_quest_tipologia">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="codigo" type="string" index="codigoIndex"/>
</class>
<property name="descricao" type="string"/>
<property name="codigo" type="string" index="codigoIndex"/>
 
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioDocente" table="olap_e_quest_docente">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="codigo" type="long" index="codigoIndex"/>
<property name="nome" type="string"/>
<property name="bi" type="string"/>
<property name="username" type="string"/>
<property name="email" type="string"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
</class>
 
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" table="olap_e_quest_tipologia">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="codigo" type="string" index="codigoIndex"/>
<property name="descricao" type="string"/>
</class>
 
 
 
 
 
<!--
<class name="pt.estgp.estgweb.domain.OlapStarQuestionario" table="olap_star_quest">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
104,13 → 105,13
<many-to-one name="cursoDegree" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCursoDegree" outer-join="false" lazy="proxy"/>
<many-to-one name="periodo" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioPeriodo" outer-join="false" lazy="proxy"/>
<many-to-one name="ano" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioAno" outer-join="false" lazy="proxy"/>
<!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos-->
 
<many-to-one name="timeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/>
 
<!--Assim e possivel Filtrar por questionario uso a dimensao questionario-->
<!--<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>-->
</class>
 
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
</class>-->
 
<class name="pt.estgp.estgweb.domain.OlapStarQuestionarioAnswer" table="olap_star_quest_answer">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
120,23 → 121,75
<property name="ordemResposta" type="int"/>
<property name="intResposta" type="int" index="intResponseIndex"/>
 
<many-to-one name="starQuestionario" class="pt.estgp.estgweb.domain.OlapStarQuestionario" outer-join="false" lazy="proxy"/>
<!--Associação directa às classes de resposta-->
<many-to-one name="tipologia" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" outer-join="false" lazy="proxy"/>
<many-to-one name="unidade" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUnidade" outer-join="false" lazy="proxy"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.OlapEntityQuestionario" outer-join="false" lazy="proxy"/>
 
<many-to-one name="perguntaGrupo" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaGrupo" outer-join="false" lazy="proxy"/>
<many-to-one name="perguntaNumero" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaNumero" outer-join="false" lazy="proxy"/>
<!--Se quiser usar factos historicos preciso de uma dimensao onde estejam todas as respostas dos questionarios pedagogicos-->
<many-to-one name="timeLine" class="pt.estgp.estgweb.domain.OlapHistoryDimension" outer-join="false" lazy="proxy"/>
 
<!--Desmultiplicadas das classes de resposta-->
<many-to-one name="pergunta" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioPergunta" outer-join="false" lazy="proxy"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
 
<many-to-one name="perfilUser" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioUser" outer-join="false" lazy="proxy"/>
</class>
 
 
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaGrupo" table="olap_e_quest_pgrp">
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPergunta" table="olap_e_quest_pgrp">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="nome" type="string"/>
<property name="grupo" type="string" index="grupoIndex"/>
<property name="pergunta" type="string" index="perguntaIndex"/>
<property name="numero" type="string" index="numeroIndex"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
</class>
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaNumero" table="olap_e_quest_p">
 
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioUser" table="olap_e_quest_user">
<id name="id" type="long" unsaved-value="0">
<generator class="native"/>
</id>
<property name="pergunta" type="string" index="perguntaIndex"/>
<property name="zip" type="string"/>
<property name="country" type="string"/>
<property name="sex" type="string"/>
<property name="birthDate" type="date"/>
<property name="tipoAlunoTrabalhadorEstudante" type="boolean">
<column name="tipoAlunoTrabalhadorEstudante" default="false"/>
</property>
<property name="tipoAlunoErasmus" type="boolean">
<column name="tipoAlunoErasmus" default="false"/>
</property>
<property name="tipoAlunoNormal" type="boolean">
<column name="tipoAlunoNormal" default="false"/>
</property>
<property name="tipoAlunoBolseiro" type="boolean">
<column name="tipoAlunoBolseiro" default="false"/>
</property>
<property name="tipoAlunoMilitar" type="boolean">
<column name="tipoAlunoMilitar" default="false"/>
</property>
<property name="tipoAlunoDirigenteAssociativo" type="boolean">
<column name="tipoAlunoDirigenteAssociativo" default="false"/>
</property>
<property name="tipoAlunoDeficiente" type="boolean">
<column name="tipoAlunoDeficiente" default="false"/>
</property>
<property name="tipoAlunoBombeiro" type="boolean">
<column name="tipoAlunoBombeiro" default="false"/>
</property>
<property name="tipoAlunoVascodagama" type="boolean">
<column name="tipoAlunoVascodagama" default="false"/>
</property>
<property name="propinasEmDia" type="boolean" >
<column name="propinasEmDia" default="false"/>
</property>
 
<property name="academicDegree" type="string"/>
<property name="scholarDegree" type="string"/>
<many-to-one name="questionario" class="pt.estgp.estgweb.domain.Questionario" outer-join="false" lazy="proxy"/>
 
 
</class>
</hibernate-mapping>
/branches/v3/impl/src/hbm/pt/estgp/estgweb/domain/Questionarios.hbm.xml
191,6 → 191,10
<column name="answer_generation_task_id" default="0"/>
</property>
 
<property name="answerOlapGenerationTaskId" type="long">
<column name="answer_olap_generation_task_id" default="0"/>
</property>
 
<!--Modulo de Pedagogico-->
<property name="courseSelectionTaskId" type="long">
<column name="course_selection_task_id" default="0"/>