/branches/v3/impl/src/hbm/pt/estgp/estgweb/domain/OlapQuestionarios.hbm.xml |
---|
New file |
0,0 → 1,129 |
<?xml version="1.0"?> |
<!DOCTYPE hibernate-mapping |
PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
<hibernate-mapping> |
<class name="pt.estgp.estgweb.domain.OlapHistoryDimension" table="olap_e_timeline"> |
<id name="id" type="long" unsaved-value="0"> |
<generator class="native"/> |
</id> |
<property name="nome" type="string"/> |
<property name="descricao" type="string"/> |
</class> |
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaGrupo" table="olap_e_quest_pgrp"> |
<id name="id" type="long" unsaved-value="0"> |
<generator class="native"/> |
</id> |
<property name="nome" type="string"/> |
</class> |
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioAnswered" table="olap_e_quest_answer"> |
<id name="id" type="long" unsaved-value="0"> |
<generator class="native"/> |
</id> |
<property name="answered" type="boolean"/> |
</class> |
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioAnswer" table="olap_e_quest_pgrp"> |
<id name="id" type="long" unsaved-value="0"> |
<generator class="native"/> |
</id> |
<property name="answerStr" type="string" index="answerStrIndex"/> |
<property name="answerInt" type="integer" index="answerIntIndex"/> |
</class> |
<class name="pt.estgp.estgweb.domain.OlapEntityQuestionarioAno" table="olap_e_quest_ano"> |
<id name="id" type="long" unsaved-value="0"> |
<generator class="native"/> |
</id> |
<property name="ano" type="string"/> |
</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"/> |
</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"/> |
</class> |
<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"/> |
<property name="nome" type="string"/> |
</class> |
<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"/> |
<property name="nome" 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.OlapEntityQuestionarioTurma" table="olap_e_quest_turma"> |
<id name="id" type="long" unsaved-value="0"> |
<generator class="native"/> |
</id> |
<property name="codigo" type="string"/> |
</class> |
<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="string"/> |
<property name="nome" type="string"/> |
<property name="bi" type="string"/> |
<property name="username" type="string"/> |
</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"/> |
<property name="nome" 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"/> |
</id> |
<property name="pergunta" type="string"/> |
<property name="resposta" type="int"/> |
<many-to-one name="tipologia" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioTipologia" outer-join="false" lazy="proxy"/> |
<many-to-one name="docente" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioDocente" outer-join="false" lazy="proxy"/> |
<many-to-one name="turma" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioTurma" outer-join="false" lazy="proxy"/> |
<many-to-one name="instituicao" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioInstituicao" 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="curso" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCurso" outer-join="false" lazy="proxy"/> |
<many-to-one name="cursoDegree" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioCursoDegree" outer-join="false" lazy="proxy"/> |
<many-to-one name="ano" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioAno" 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="perguntaGrupo" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioPerguntaGrupo" outer-join="false" lazy="proxy"/> |
<many-to-one name="perguntaAnswer" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioAnswer" outer-join="false" lazy="proxy"/> |
<!-- Um facto para o questionario respondido outro para o questionario nao respondido --> |
<many-to-one name="perguntaAnswered" class="pt.estgp.estgweb.domain.OlapEntityQuestionarioAnswered" 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"/> |
<!--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"/> |
</class> |
</hibernate-mapping> |
/branches/v3/impl/src/hbm/pt/estgp/estgweb/domain/Announcement.hbm.xml |
---|
4,7 → 4,7 |
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
<hibernate-mapping> |
<class name="pt.estgp.estgweb.domain.Announcement" table="announcement" abstract="true"> |
<class name="pt.estgp.estgweb.domain.Announcement" table="announcement" abstract="true"> |
<meta attribute="extends">pt.estgp.estgweb.domain.OwnedDomainObject</meta> |
<meta attribute="scope-class">public abstract</meta> |
<id name="id" type="long"> |
/branches/v3/impl/src/hbm/pt/estgp/estgweb/domain/Questionarios.hbm.xml |
---|
14,9 → 14,10 |
<timestamp source="db" name="updateDate" unsaved-value="null"/> |
<property name="saveDate" type="timestamp"/> |
<property name="startDate" type="timestamp"/> |
<property name="description" type="string"/> |
<property name="year" type="string"/> |
<property name="semestre" type="string"/> |
<property name="iAnswersProcessor" type="string"/> |
<property name="p1" type="string"/> |
<property name="p2" type="string"/> |
<property name="p3" type="string"/> |
47,6 → 48,26 |
<property name="p28" type="string"/> |
<property name="p29" type="string"/> |
<property name="p30" type="string"/> |
<property name="p31" type="string"/> |
<property name="p32" type="string"/> |
<property name="p33" type="string"/> |
<property name="p34" type="string"/> |
<property name="p35" type="string"/> |
<property name="p36" type="string"/> |
<property name="p37" type="string"/> |
<property name="p38" type="string"/> |
<property name="p39" type="string"/> |
<property name="p40" type="string"/> |
<property name="t1" type="string"/> |
<property name="t2" type="string"/> |
<property name="t3" type="string"/> |
<property name="t4" type="string"/> |
<property name="t5" type="string"/> |
<property name="t6" type="string"/> |
<property name="t7" type="string"/> |
<property name="t8" type="string"/> |
<property name="t9" type="string"/> |
<property name="t10" type="string"/> |
<property name="p1Group" type="string"/> |
<property name="p2Group" type="string"/> |
78,6 → 99,26 |
<property name="p28Group" type="string"/> |
<property name="p29Group" type="string"/> |
<property name="p30Group" type="string"/> |
<property name="p31Group" type="string"/> |
<property name="p32Group" type="string"/> |
<property name="p33Group" type="string"/> |
<property name="p34Group" type="string"/> |
<property name="p35Group" type="string"/> |
<property name="p36Group" type="string"/> |
<property name="p37Group" type="string"/> |
<property name="p38Group" type="string"/> |
<property name="p39Group" type="string"/> |
<property name="p40Group" type="string"/> |
<property name="t1Group" type="string"/> |
<property name="t2Group" type="string"/> |
<property name="t3Group" type="string"/> |
<property name="t4Group" type="string"/> |
<property name="t5Group" type="string"/> |
<property name="t6Group" type="string"/> |
<property name="t7Group" type="string"/> |
<property name="t8Group" type="string"/> |
<property name="t9Group" type="string"/> |
<property name="t10Group" type="string"/> |
<property name="introHtml" type="string"> |
<column name="introHtml" sql-type="text"/> |
98,10 → 139,38 |
<property name="group5Title" type="string"> |
<column name="group5Title" sql-type="text"/> |
</property> |
<property name="group6Title" type="string"> |
<column name="group6Title" sql-type="text"/> |
</property> |
<property name="group7Title" type="string"> |
<column name="group7Title" sql-type="text"/> |
</property> |
<property name="group8Title" type="string"> |
<column name="group8Title" sql-type="text"/> |
</property> |
<property name="group9Title" type="string"> |
<column name="group9Title" sql-type="text"/> |
</property> |
<property name="group10Title" type="string"> |
<column name="group10Title" sql-type="text"/> |
</property> |
<property name="group1Code" type="string"/> |
<property name="group2Code" type="string"/> |
<property name="group3Code" type="string"/> |
<property name="group4Code" type="string"/> |
<property name="group5Code" type="string"/> |
<property name="group6Code" type="string"/> |
<property name="group7Code" type="string"/> |
<property name="group8Code" type="string"/> |
<property name="group9Code" type="string"/> |
<property name="group10Code" type="string"/> |
<!--State flow info--> |
<!-- |
Possible states: |
114,12 → 183,24 |
<property name="state" type="string"> |
<column name="state" default="'CREATED'"/> |
</property> |
<property name="institution1Processing" type="boolean"/> |
<property name="institution2Processing" type="boolean"/> |
<property name="institution3Processing" type="boolean"/> |
<property name="institution4Processing" type="boolean"/> |
<many-to-one name="questionarioHistoryDrive" class="pt.estgp.estgweb.domain.QuestionarioHistoryDrive" lazy="proxy" outer-join="false"/> |
<subclass name="pt.estgp.estgweb.domain.QuestionarioImpl" discriminator-value="QuestionarioImpl"/> |
</class> |
<class name="pt.estgp.estgweb.domain.QuestionarioHistoryDrive" table="questionario_history_drive" abstract="true"> |
<meta attribute="extends">pt.estgp.estgweb.domain.DomainObject</meta> |
<meta attribute="scope-class">public abstract</meta> |
<id name="id" type="long" unsaved-value="0"> |
<generator class="native"/> |
</id> |
<discriminator column="discriminator"/> |
<timestamp source="db" name="updateDate" unsaved-value="null"/> |
<property name="saveDate" type="timestamp"/> |
<property name="codeName" type="string" unique="true"/> |
<property name="description" type="string"/> |
<subclass name="pt.estgp.estgweb.domain.QuestionarioHistoryDriveImpl" discriminator-value="QuestionarioHistoryDriveImpl"/> |
</class> |
</hibernate-mapping> |