|
|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap"
|
|
|
|
|
project-version="3.0">
|
|
|
|
|
xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap.xsd"
|
|
|
|
|
project-version="3.0.0.1">
|
|
|
|
|
<property name="defaultLockType" value="optimistic"/>
|
|
|
|
|
<property name="defaultPackage" value="siprp.database.cayenne.objects"/>
|
|
|
|
|
<property name="defaultSchema" value="public"/>
|
|
|
|
|
@ -20,6 +20,7 @@
|
|
|
|
|
</db-entity>
|
|
|
|
|
<db-entity name="contactos" schema="public">
|
|
|
|
|
<db-attribute name="cargo" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="departamento" type="VARCHAR" length="256"/>
|
|
|
|
|
<db-attribute name="email" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="fax" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
@ -52,6 +53,24 @@
|
|
|
|
|
<db-key-cache-size>1</db-key-cache-size>
|
|
|
|
|
</db-key-generator>
|
|
|
|
|
</db-entity>
|
|
|
|
|
<db-entity name="empresa_preco_periodicidade_tipo" schema="public">
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="nome" type="VARCHAR" isMandatory="true" length="64"/>
|
|
|
|
|
</db-entity>
|
|
|
|
|
<db-entity name="empresa_preco_servico" schema="public">
|
|
|
|
|
<db-attribute name="activo" type="BIT" isMandatory="true" length="1"/>
|
|
|
|
|
<db-attribute name="empresa_id" type="INTEGER" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="empresa_preco_periodicidade_tipo_id" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="empresa_preco_servico_tipo_id" type="INTEGER" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="iniciado" type="TIMESTAMP" length="29"/>
|
|
|
|
|
<db-attribute name="tipo_outro" type="VARCHAR" length="64"/>
|
|
|
|
|
<db-attribute name="valor" type="DOUBLE" length="17" scale="17"/>
|
|
|
|
|
</db-entity>
|
|
|
|
|
<db-entity name="empresa_preco_servico_tipo" schema="public">
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="nome" type="VARCHAR" isMandatory="true" length="64"/>
|
|
|
|
|
</db-entity>
|
|
|
|
|
<db-entity name="empresas" schema="public">
|
|
|
|
|
<db-attribute name="a_consultas" type="CHAR" length="1"/>
|
|
|
|
|
<db-attribute name="a_exames" type="CHAR" length="1"/>
|
|
|
|
|
@ -64,6 +83,7 @@
|
|
|
|
|
<db-attribute name="codigo_2" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="codigo_3" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="codigo_postal" type="VARCHAR" length="8"/>
|
|
|
|
|
<db-attribute name="codigo_relatorio_unico" type="VARCHAR" length="64"/>
|
|
|
|
|
<db-attribute name="concelho" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="contacto_1" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="contacto_2" type="INTEGER" length="10"/>
|
|
|
|
|
@ -90,8 +110,6 @@
|
|
|
|
|
<db-attribute name="perfil_1" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="perfil_2" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="periodicidade" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="preco_higiene" type="DOUBLE" length="17" scale="17"/>
|
|
|
|
|
<db-attribute name="preco_medicina" type="DOUBLE" length="17" scale="17"/>
|
|
|
|
|
<db-attribute name="seguranca_social" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="servico_higiene_designacao" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="servico_higiene_tipo" type="INTEGER" length="10"/>
|
|
|
|
|
@ -148,6 +166,7 @@
|
|
|
|
|
<db-attribute name="data" type="DATE" length="13"/>
|
|
|
|
|
<db-attribute name="fo" type="LONGVARBINARY" length="2147483647"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="impresso_stamp" type="TIMESTAMP" length="29"/>
|
|
|
|
|
<db-attribute name="inactivo" type="CHAR" isMandatory="true" length="1"/>
|
|
|
|
|
<db-attribute name="medico_id" type="INTEGER" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="ocasional" type="INTEGER" length="10"/>
|
|
|
|
|
@ -568,6 +587,8 @@
|
|
|
|
|
<db-attribute name="data_relatorio" type="DATE" length="13"/>
|
|
|
|
|
<db-attribute name="estado" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
|
<db-attribute name="inserted_stamp" type="TIMESTAMP" length="29"/>
|
|
|
|
|
<db-attribute name="medico_id" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="motivo" type="INTEGER" length="10"/>
|
|
|
|
|
<db-attribute name="observacoes" type="VARCHAR" length="2048"/>
|
|
|
|
|
<db-attribute name="prestador_id" type="INTEGER" length="10"/>
|
|
|
|
|
@ -668,9 +689,11 @@
|
|
|
|
|
<db-attribute name="inactivo" type="CHAR" isMandatory="true" length="1"/>
|
|
|
|
|
<db-attribute name="local_trabalho" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="nacionalidade" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="nif" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="nome" type="VARCHAR" isMandatory="true" length="255"/>
|
|
|
|
|
<db-attribute name="nome_plain" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="numero_mecanografico" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="numero_utente" type="VARCHAR" length="255"/>
|
|
|
|
|
<db-attribute name="observacoes" type="VARCHAR" length="65535"/>
|
|
|
|
|
<db-attribute name="observacoes_gestao" type="VARCHAR" length="65535"/>
|
|
|
|
|
<db-attribute name="perfil" type="INTEGER" length="10"/>
|
|
|
|
|
@ -832,6 +855,7 @@
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="Contactos" className="siprp.database.cayenne.objects.Contactos" lock-type="optimistic" dbEntityName="contactos" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="cargo" type="java.lang.String" db-attribute-path="cargo"/>
|
|
|
|
|
<obj-attribute name="departamento" type="java.lang.String" db-attribute-path="departamento"/>
|
|
|
|
|
<obj-attribute name="email" type="java.lang.String" db-attribute-path="email"/>
|
|
|
|
|
<obj-attribute name="fax" type="java.lang.String" db-attribute-path="fax"/>
|
|
|
|
|
<obj-attribute name="id" type="java.lang.Integer" db-attribute-path="id"/>
|
|
|
|
|
@ -849,6 +873,18 @@
|
|
|
|
|
<obj-entity name="EmailPlanoDeActuacao" className="siprp.database.cayenne.objects.EmailPlanoDeActuacao" dbEntityName="email_plano_de_actuacao" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="EmpresaPrecoPeriodicidadeTipo" className="siprp.database.cayenne.objects.EmpresaPrecoPeriodicidadeTipo" dbEntityName="empresa_preco_periodicidade_tipo">
|
|
|
|
|
<obj-attribute name="nome" type="java.lang.String" db-attribute-path="nome"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="EmpresaPrecoServico" className="siprp.database.cayenne.objects.EmpresaPrecoServico" dbEntityName="empresa_preco_servico">
|
|
|
|
|
<obj-attribute name="activo" type="java.lang.Boolean" db-attribute-path="activo"/>
|
|
|
|
|
<obj-attribute name="iniciado" type="java.util.Date" db-attribute-path="iniciado"/>
|
|
|
|
|
<obj-attribute name="tipoOutro" type="java.lang.String" db-attribute-path="tipo_outro"/>
|
|
|
|
|
<obj-attribute name="valor" type="java.lang.Double" db-attribute-path="valor"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="EmpresaPrecoServicoTipo" className="siprp.database.cayenne.objects.EmpresaPrecoServicoTipo" dbEntityName="empresa_preco_servico_tipo">
|
|
|
|
|
<obj-attribute name="nome" type="java.lang.String" db-attribute-path="nome"/>
|
|
|
|
|
</obj-entity>
|
|
|
|
|
<obj-entity name="Empresas" className="siprp.database.cayenne.objects.Empresas" lock-type="optimistic" dbEntityName="empresas" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
<obj-attribute name="aConsultas" type="java.lang.String" db-attribute-path="a_consultas"/>
|
|
|
|
|
<obj-attribute name="aExames" type="java.lang.String" db-attribute-path="a_exames"/>
|
|
|
|
|
@ -861,6 +897,7 @@
|
|
|
|
|
<obj-attribute name="codigo2" type="java.lang.String" db-attribute-path="codigo_2"/>
|
|
|
|
|
<obj-attribute name="codigo3" type="java.lang.String" db-attribute-path="codigo_3"/>
|
|
|
|
|
<obj-attribute name="codigoPostal" type="java.lang.String" db-attribute-path="codigo_postal"/>
|
|
|
|
|
<obj-attribute name="codigoRelatorioUnico" type="java.lang.String" db-attribute-path="codigo_relatorio_unico"/>
|
|
|
|
|
<obj-attribute name="concelho" type="java.lang.String" db-attribute-path="concelho"/>
|
|
|
|
|
<obj-attribute name="contribuinte" type="java.lang.String" db-attribute-path="contribuinte"/>
|
|
|
|
|
<obj-attribute name="dataAceitacao" type="java.util.Date" db-attribute-path="data_aceitacao"/>
|
|
|
|
|
@ -884,8 +921,6 @@
|
|
|
|
|
<obj-attribute name="perfil1" type="java.lang.String" db-attribute-path="perfil_1"/>
|
|
|
|
|
<obj-attribute name="perfil2" type="java.lang.String" db-attribute-path="perfil_2"/>
|
|
|
|
|
<obj-attribute name="periodicidade" type="java.lang.String" db-attribute-path="periodicidade"/>
|
|
|
|
|
<obj-attribute name="precoHigiene" type="java.lang.Double" db-attribute-path="preco_higiene"/>
|
|
|
|
|
<obj-attribute name="precoMedicina" type="java.lang.Double" db-attribute-path="preco_medicina"/>
|
|
|
|
|
<obj-attribute name="segurancaSocial" type="java.lang.String" db-attribute-path="seguranca_social"/>
|
|
|
|
|
<obj-attribute name="servicoHigieneDesignacao" type="java.lang.String" db-attribute-path="servico_higiene_designacao"/>
|
|
|
|
|
<obj-attribute name="servicoHigieneTipo" type="java.lang.Integer" db-attribute-path="servico_higiene_tipo"/>
|
|
|
|
|
@ -932,6 +967,7 @@
|
|
|
|
|
<obj-attribute name="data" type="java.util.Date" db-attribute-path="data"/>
|
|
|
|
|
<obj-attribute name="fo" type="byte[]" db-attribute-path="fo"/>
|
|
|
|
|
<obj-attribute name="id" type="java.lang.Integer" db-attribute-path="id"/>
|
|
|
|
|
<obj-attribute name="impressoStamp" type="java.util.Date" db-attribute-path="impresso_stamp"/>
|
|
|
|
|
<obj-attribute name="inactivo" type="java.lang.String" db-attribute-path="inactivo"/>
|
|
|
|
|
<obj-attribute name="ocasional" type="java.lang.Integer" db-attribute-path="ocasional"/>
|
|
|
|
|
<obj-attribute name="outraFuncao1" type="java.lang.String" db-attribute-path="outra_funcao_1"/>
|
|
|
|
|
@ -1165,6 +1201,8 @@
|
|
|
|
|
<obj-attribute name="dataRelatorio" type="java.util.Date" db-attribute-path="data_relatorio"/>
|
|
|
|
|
<obj-attribute name="estado" type="java.lang.Integer" db-attribute-path="estado"/>
|
|
|
|
|
<obj-attribute name="id" type="java.lang.Integer" db-attribute-path="id"/>
|
|
|
|
|
<obj-attribute name="insertedStamp" type="java.util.Date" db-attribute-path="inserted_stamp"/>
|
|
|
|
|
<obj-attribute name="medicoId" type="java.lang.Integer" db-attribute-path="medico_id"/>
|
|
|
|
|
<obj-attribute name="motivo" type="java.lang.Integer" db-attribute-path="motivo"/>
|
|
|
|
|
<obj-attribute name="observacoes" type="java.lang.String" db-attribute-path="observacoes"/>
|
|
|
|
|
<obj-attribute name="realizada" type="java.lang.String" db-attribute-path="realizada"/>
|
|
|
|
|
@ -1233,9 +1271,11 @@
|
|
|
|
|
<obj-attribute name="inactivo" type="java.lang.String" db-attribute-path="inactivo"/>
|
|
|
|
|
<obj-attribute name="localTrabalho" type="java.lang.String" db-attribute-path="local_trabalho"/>
|
|
|
|
|
<obj-attribute name="nacionalidade" type="java.lang.String" db-attribute-path="nacionalidade"/>
|
|
|
|
|
<obj-attribute name="nif" type="java.lang.String" db-attribute-path="nif"/>
|
|
|
|
|
<obj-attribute name="nome" type="java.lang.String" db-attribute-path="nome"/>
|
|
|
|
|
<obj-attribute name="nomePlain" type="java.lang.String" db-attribute-path="nome_plain"/>
|
|
|
|
|
<obj-attribute name="numeroMecanografico" type="java.lang.String" db-attribute-path="numero_mecanografico"/>
|
|
|
|
|
<obj-attribute name="numeroUtente" type="java.lang.String" db-attribute-path="numero_utente"/>
|
|
|
|
|
<obj-attribute name="observacoes" type="java.lang.String" db-attribute-path="observacoes"/>
|
|
|
|
|
<obj-attribute name="observacoesGestao" type="java.lang.String" db-attribute-path="observacoes_gestao"/>
|
|
|
|
|
<obj-attribute name="perfil" type="java.lang.Integer" db-attribute-path="perfil"/>
|
|
|
|
|
@ -1309,6 +1349,9 @@
|
|
|
|
|
<db-relationship name="toEmpresas" source="avisos" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas1" source="avisos" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEstabelecimentos" source="avisos" target="estabelecimentos" toMany="false">
|
|
|
|
|
<db-attribute-pair source="estabelecimento_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1330,36 +1373,84 @@
|
|
|
|
|
<db-relationship name="toEstabelecimentos" source="email_plano_de_actuacao" target="estabelecimentos" toMany="false">
|
|
|
|
|
<db-attribute-pair source="estabelecimento_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="empresaPrecoServicoArray" source="empresa_preco_periodicidade_tipo" target="empresa_preco_servico" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_preco_periodicidade_tipo_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresaPrecoPeriodicidadeTipo" source="empresa_preco_servico" target="empresa_preco_periodicidade_tipo" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_preco_periodicidade_tipo_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresaPrecoServicoTipo" source="empresa_preco_servico" target="empresa_preco_servico_tipo" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_preco_servico_tipo_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas" source="empresa_preco_servico" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="empresaPrecoServicoArray" source="empresa_preco_servico_tipo" target="empresa_preco_servico" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_preco_servico_tipo_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="avisosArray" source="empresas" target="avisos" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="avisosArray1" source="empresas" target="avisos" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="empresaPrecoServicoArray" source="empresas" target="empresa_preco_servico" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="estabelecimentosArray" source="empresas" target="estabelecimentos" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="estabelecimentosArray1" source="empresas" target="estabelecimentos" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsAreaArray" source="empresas" target="hs_area" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsAreaArray1" source="empresas" target="hs_area" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsEmailEmpresa" source="empresas" target="hs_email_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsEmailEmpresaArray" source="empresas" target="hs_email_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsLegislacaoEmpresaArray" source="empresas" target="hs_legislacao_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsLegislacaoEmpresaArray1" source="empresas" target="hs_legislacao_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsNormalizacaoEmpresaArray" source="empresas" target="hs_normalizacao_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsNormalizacaoEmpresaArray1" source="empresas" target="hs_normalizacao_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsRiscoEmpresaArray" source="empresas" target="hs_risco_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsRiscoEmpresaArray1" source="empresas" target="hs_risco_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="lembretesArray" source="empresas" target="lembretes" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="lembretesArray1" source="empresas" target="lembretes" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="marcacoesEmpresaArray" source="empresas" target="marcacoes_empresa" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="marcacoesEmpresaArray1" source="empresas" target="marcacoes_empresa" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="prtElementosProtocoloArray" source="empresas" target="prt_elementos_protocolo" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="prtElementosProtocoloArray1" source="empresas" target="prt_elementos_protocolo" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="empresa_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toContactos" source="empresas" target="contactos" toMany="false">
|
|
|
|
|
<db-attribute-pair source="contacto_1" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1402,6 +1493,9 @@
|
|
|
|
|
<db-relationship name="toEmpresas" source="estabelecimentos" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas1" source="estabelecimentos" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toMedicos" source="estabelecimentos" target="medicos" toMany="false">
|
|
|
|
|
<db-attribute-pair source="medico_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1432,6 +1526,9 @@
|
|
|
|
|
<db-relationship name="toEmpresas" source="hs_area" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas1" source="hs_area" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsEmailEmpresaArray" source="hs_email" target="hs_email_empresa" toDependentPK="true" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="email_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1441,6 +1538,9 @@
|
|
|
|
|
<db-relationship name="toEmpresa" source="hs_email_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas" source="hs_email_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toHsEmail" source="hs_email_empresa" target="hs_email" toMany="false">
|
|
|
|
|
<db-attribute-pair source="email_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1462,6 +1562,9 @@
|
|
|
|
|
<db-relationship name="hsLegislacaoArray" source="hs_legislacao_categoria" target="hs_legislacao" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="categoria_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas" source="hs_legislacao_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toHsEmpresa" source="hs_legislacao_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1489,6 +1592,9 @@
|
|
|
|
|
<db-relationship name="toEmpresa" source="hs_normalizacao_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas" source="hs_normalizacao_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toHsNormalizacao" source="hs_normalizacao_empresa" target="hs_normalizacao" toMany="false">
|
|
|
|
|
<db-attribute-pair source="normalizacao_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1630,6 +1736,9 @@
|
|
|
|
|
<db-relationship name="toEmpresa" source="hs_risco_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas" source="hs_risco_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toHsRisco" source="hs_risco_empresa" target="hs_risco" toMany="false">
|
|
|
|
|
<db-attribute-pair source="risco_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1648,6 +1757,9 @@
|
|
|
|
|
<db-relationship name="toEmpresas" source="lembretes" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas1" source="lembretes" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEstabelecimentos" source="lembretes" target="estabelecimentos" toMany="false">
|
|
|
|
|
<db-attribute-pair source="estabelecimento_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1669,6 +1781,9 @@
|
|
|
|
|
<db-relationship name="toEmpresas" source="marcacoes_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas1" source="marcacoes_empresa" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="hsRelatorioArray" source="marcacoes_estabelecimento" target="hs_relatorio" toMany="true">
|
|
|
|
|
<db-attribute-pair source="id" target="marcacao_id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1771,6 +1886,9 @@
|
|
|
|
|
<db-relationship name="toEmpresas" source="prt_elementos_protocolo" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toEmpresas1" source="prt_elementos_protocolo" target="empresas" toMany="false">
|
|
|
|
|
<db-attribute-pair source="empresa_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
<db-relationship name="toPrtTiposElementosProtocolo" source="prt_elementos_protocolo" target="prt_tipos_elementos_protocolo" toMany="false">
|
|
|
|
|
<db-attribute-pair source="tipo_elemento_protocolo_id" target="id"/>
|
|
|
|
|
</db-relationship>
|
|
|
|
|
@ -1923,16 +2041,32 @@
|
|
|
|
|
<obj-relationship name="prestadoresArray" source="Contactos" target="Prestadores" db-relationship-path="prestadoresArray"/>
|
|
|
|
|
<obj-relationship name="trabalhadoresEcdArray" source="EcdOficial" target="TrabalhadoresEcd" db-relationship-path="trabalhadoresEcdArray"/>
|
|
|
|
|
<obj-relationship name="toEstabelecimentos" source="EmailPlanoDeActuacao" target="Estabelecimentos" deleteRule="Nullify" db-relationship-path="toEstabelecimentos"/>
|
|
|
|
|
<obj-relationship name="empresaPrecoServicoArray" source="EmpresaPrecoPeriodicidadeTipo" target="EmpresaPrecoServico" deleteRule="Deny" db-relationship-path="empresaPrecoServicoArray"/>
|
|
|
|
|
<obj-relationship name="toEmpresaPrecoPeriodicidadeTipo" source="EmpresaPrecoServico" target="EmpresaPrecoPeriodicidadeTipo" deleteRule="Nullify" db-relationship-path="toEmpresaPrecoPeriodicidadeTipo"/>
|
|
|
|
|
<obj-relationship name="toEmpresaPrecoServicoTipo" source="EmpresaPrecoServico" target="EmpresaPrecoServicoTipo" deleteRule="Nullify" db-relationship-path="toEmpresaPrecoServicoTipo"/>
|
|
|
|
|
<obj-relationship name="toEmpresas" source="EmpresaPrecoServico" target="Empresas" deleteRule="Nullify" db-relationship-path="toEmpresas"/>
|
|
|
|
|
<obj-relationship name="empresaPrecoServicoArray" source="EmpresaPrecoServicoTipo" target="EmpresaPrecoServico" deleteRule="Deny" db-relationship-path="empresaPrecoServicoArray"/>
|
|
|
|
|
<obj-relationship name="avisosArray" source="Empresas" target="Avisos" db-relationship-path="avisosArray"/>
|
|
|
|
|
<obj-relationship name="avisosArray1" source="Empresas" target="Avisos" deleteRule="Deny" db-relationship-path="avisosArray1"/>
|
|
|
|
|
<obj-relationship name="empresaPrecoServicoArray" source="Empresas" target="EmpresaPrecoServico" deleteRule="Deny" db-relationship-path="empresaPrecoServicoArray"/>
|
|
|
|
|
<obj-relationship name="estabelecimentosArray" source="Empresas" target="Estabelecimentos" db-relationship-path="estabelecimentosArray"/>
|
|
|
|
|
<obj-relationship name="estabelecimentosArray1" source="Empresas" target="Estabelecimentos" deleteRule="Deny" db-relationship-path="estabelecimentosArray1"/>
|
|
|
|
|
<obj-relationship name="hsAreaArray" source="Empresas" target="HsArea" db-relationship-path="hsAreaArray"/>
|
|
|
|
|
<obj-relationship name="hsAreaArray1" source="Empresas" target="HsArea" deleteRule="Deny" db-relationship-path="hsAreaArray1"/>
|
|
|
|
|
<obj-relationship name="hsEmailEmpresa" source="Empresas" target="HsEmailEmpresa" db-relationship-path="hsEmailEmpresa"/>
|
|
|
|
|
<obj-relationship name="hsEmailEmpresaArray" source="Empresas" target="HsEmailEmpresa" deleteRule="Deny" db-relationship-path="hsEmailEmpresaArray"/>
|
|
|
|
|
<obj-relationship name="hsLegislacaoEmpresaArray" source="Empresas" target="HsLegislacaoEmpresa" db-relationship-path="hsLegislacaoEmpresaArray"/>
|
|
|
|
|
<obj-relationship name="hsLegislacaoEmpresaArray1" source="Empresas" target="HsLegislacaoEmpresa" deleteRule="Deny" db-relationship-path="hsLegislacaoEmpresaArray1"/>
|
|
|
|
|
<obj-relationship name="hsNormalizacaoEmpresaArray" source="Empresas" target="HsNormalizacaoEmpresa" db-relationship-path="hsNormalizacaoEmpresaArray"/>
|
|
|
|
|
<obj-relationship name="hsNormalizacaoEmpresaArray1" source="Empresas" target="HsNormalizacaoEmpresa" deleteRule="Deny" db-relationship-path="hsNormalizacaoEmpresaArray1"/>
|
|
|
|
|
<obj-relationship name="hsRiscoEmpresaArray" source="Empresas" target="HsRiscoEmpresa" deleteRule="Deny" db-relationship-path="hsRiscoEmpresaArray"/>
|
|
|
|
|
<obj-relationship name="hsRiscoEmpresaArray1" source="Empresas" target="HsRiscoEmpresa" deleteRule="Deny" db-relationship-path="hsRiscoEmpresaArray1"/>
|
|
|
|
|
<obj-relationship name="lembretesArray" source="Empresas" target="Lembretes" db-relationship-path="lembretesArray"/>
|
|
|
|
|
<obj-relationship name="lembretesArray1" source="Empresas" target="Lembretes" deleteRule="Deny" db-relationship-path="lembretesArray1"/>
|
|
|
|
|
<obj-relationship name="marcacoesEmpresaArray" source="Empresas" target="MarcacoesEmpresa" db-relationship-path="marcacoesEmpresaArray"/>
|
|
|
|
|
<obj-relationship name="marcacoesEmpresaArray1" source="Empresas" target="MarcacoesEmpresa" deleteRule="Deny" db-relationship-path="marcacoesEmpresaArray1"/>
|
|
|
|
|
<obj-relationship name="prtElementosProtocoloArray" source="Empresas" target="PrtElementosProtocolo" db-relationship-path="prtElementosProtocoloArray"/>
|
|
|
|
|
<obj-relationship name="prtElementosProtocoloArray1" source="Empresas" target="PrtElementosProtocolo" deleteRule="Deny" db-relationship-path="prtElementosProtocoloArray1"/>
|
|
|
|
|
<obj-relationship name="toContactos" source="Empresas" target="Contactos" db-relationship-path="toContactos"/>
|
|
|
|
|
<obj-relationship name="toContactos1" source="Empresas" target="Contactos" db-relationship-path="toContactos1"/>
|
|
|
|
|
<obj-relationship name="toLogotipo" source="Empresas" target="Image" db-relationship-path="toImage"/>
|
|
|
|
|
|