|
|
|
@ -404,6 +404,7 @@
|
|
|
|
<db-entity name="trabalhadores_ecd" schema="public">
|
|
|
|
<db-entity name="trabalhadores_ecd" schema="public">
|
|
|
|
<db-attribute name="ecd_id" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="ecd_id" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="ecd_oficial_id" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="ecd_oficial_id" type="INTEGER" length="10"/>
|
|
|
|
|
|
|
|
<db-attribute name="enviado" type="CHAR" length="1"/>
|
|
|
|
<db-attribute name="estado" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="estado" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
<db-attribute name="trabalhadores_ecds_datas_id" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="trabalhadores_ecds_datas_id" type="INTEGER" length="10"/>
|
|
|
|
@ -426,7 +427,10 @@
|
|
|
|
</db-key-generator>
|
|
|
|
</db-key-generator>
|
|
|
|
</db-entity>
|
|
|
|
</db-entity>
|
|
|
|
<db-entity name="trabalhadores_ecds_datas" schema="public">
|
|
|
|
<db-entity name="trabalhadores_ecds_datas" schema="public">
|
|
|
|
|
|
|
|
<db-attribute name="analisador_id" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="data" type="DATE" length="13"/>
|
|
|
|
<db-attribute name="data" type="DATE" length="13"/>
|
|
|
|
|
|
|
|
<db-attribute name="data_envio" type="DATE" length="13"/>
|
|
|
|
|
|
|
|
<db-attribute name="data_recepcao" type="DATE" length="13"/>
|
|
|
|
<db-attribute name="estado" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="estado" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
|
|
|
|
<db-attribute name="prestador_id" type="INTEGER" length="10"/>
|
|
|
|
<db-attribute name="prestador_id" type="INTEGER" length="10"/>
|
|
|
|
@ -766,6 +770,7 @@
|
|
|
|
<obj-attribute name="observacao" type="java.lang.String" db-attribute-path="observacao"/>
|
|
|
|
<obj-attribute name="observacao" type="java.lang.String" db-attribute-path="observacao"/>
|
|
|
|
</obj-entity>
|
|
|
|
</obj-entity>
|
|
|
|
<obj-entity name="TrabalhadoresEcd" className="siprp.database.cayenne.objects.TrabalhadoresEcd" lock-type="optimistic" dbEntityName="trabalhadores_ecd" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
<obj-entity name="TrabalhadoresEcd" className="siprp.database.cayenne.objects.TrabalhadoresEcd" lock-type="optimistic" dbEntityName="trabalhadores_ecd" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
|
|
|
|
<obj-attribute name="enviado" type="java.lang.Character" db-attribute-path="enviado"/>
|
|
|
|
<obj-attribute name="estado" type="java.lang.Integer" db-attribute-path="estado"/>
|
|
|
|
<obj-attribute name="estado" type="java.lang.Integer" db-attribute-path="estado"/>
|
|
|
|
</obj-entity>
|
|
|
|
</obj-entity>
|
|
|
|
<obj-entity name="TrabalhadoresEcds" className="siprp.database.cayenne.objects.TrabalhadoresEcds" lock-type="optimistic" dbEntityName="trabalhadores_ecds" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
<obj-entity name="TrabalhadoresEcds" className="siprp.database.cayenne.objects.TrabalhadoresEcds" lock-type="optimistic" dbEntityName="trabalhadores_ecds" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
@ -775,6 +780,8 @@
|
|
|
|
</obj-entity>
|
|
|
|
</obj-entity>
|
|
|
|
<obj-entity name="TrabalhadoresEcdsDatas" className="siprp.database.cayenne.objects.TrabalhadoresEcdsDatas" lock-type="optimistic" dbEntityName="trabalhadores_ecds_datas" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
<obj-entity name="TrabalhadoresEcdsDatas" className="siprp.database.cayenne.objects.TrabalhadoresEcdsDatas" lock-type="optimistic" dbEntityName="trabalhadores_ecds_datas" superClassName="siprp.database.cayenne.objects.BaseObject">
|
|
|
|
<obj-attribute name="data" type="java.util.Date" db-attribute-path="data"/>
|
|
|
|
<obj-attribute name="data" type="java.util.Date" db-attribute-path="data"/>
|
|
|
|
|
|
|
|
<obj-attribute name="dataEnvio" type="java.util.Date" db-attribute-path="data_envio"/>
|
|
|
|
|
|
|
|
<obj-attribute name="dataRecepcao" type="java.util.Date" db-attribute-path="data_recepcao"/>
|
|
|
|
<obj-attribute name="estado" type="java.lang.Integer" db-attribute-path="estado"/>
|
|
|
|
<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="id" type="java.lang.Integer" db-attribute-path="id"/>
|
|
|
|
</obj-entity>
|
|
|
|
</obj-entity>
|
|
|
|
@ -980,8 +987,8 @@
|
|
|
|
<db-relationship name="trabalhadoresConsultasDatasArray" source="prestadores" target="trabalhadores_consultas_datas" toMany="true">
|
|
|
|
<db-relationship name="trabalhadoresConsultasDatasArray" source="prestadores" target="trabalhadores_consultas_datas" toMany="true">
|
|
|
|
<db-attribute-pair source="id" target="prestador_id"/>
|
|
|
|
<db-attribute-pair source="id" target="prestador_id"/>
|
|
|
|
</db-relationship>
|
|
|
|
</db-relationship>
|
|
|
|
<db-relationship name="trabalhadoresEcdsDatasArray" source="prestadores" target="trabalhadores_ecds_datas" toMany="true">
|
|
|
|
<db-relationship name="trabalhadoresEcdsDatasArray1" source="prestadores" target="trabalhadores_ecds_datas" toMany="true">
|
|
|
|
<db-attribute-pair source="id" target="prestador_id"/>
|
|
|
|
<db-attribute-pair source="id" target="analisador_id"/>
|
|
|
|
</db-relationship>
|
|
|
|
</db-relationship>
|
|
|
|
<db-relationship name="toPrestadores" source="prestadores_grupos_protocolo" target="prestadores" toMany="false">
|
|
|
|
<db-relationship name="toPrestadores" source="prestadores_grupos_protocolo" target="prestadores" toMany="false">
|
|
|
|
<db-attribute-pair source="prestador_id" target="id"/>
|
|
|
|
<db-attribute-pair source="prestador_id" target="id"/>
|
|
|
|
@ -1079,6 +1086,9 @@
|
|
|
|
<db-relationship name="trabalhadoresEcdsDatasArray" source="trabalhadores_ecds" target="trabalhadores_ecds_datas" toMany="true">
|
|
|
|
<db-relationship name="trabalhadoresEcdsDatasArray" source="trabalhadores_ecds" target="trabalhadores_ecds_datas" toMany="true">
|
|
|
|
<db-attribute-pair source="id" target="trabalhadores_ecds_id"/>
|
|
|
|
<db-attribute-pair source="id" target="trabalhadores_ecds_id"/>
|
|
|
|
</db-relationship>
|
|
|
|
</db-relationship>
|
|
|
|
|
|
|
|
<db-relationship name="toAnalisador" source="trabalhadores_ecds_datas" target="prestadores" toMany="false">
|
|
|
|
|
|
|
|
<db-attribute-pair source="analisador_id" target="id"/>
|
|
|
|
|
|
|
|
</db-relationship>
|
|
|
|
<db-relationship name="toPrestadores" source="trabalhadores_ecds_datas" target="prestadores" toMany="false">
|
|
|
|
<db-relationship name="toPrestadores" source="trabalhadores_ecds_datas" target="prestadores" toMany="false">
|
|
|
|
<db-attribute-pair source="prestador_id" target="id"/>
|
|
|
|
<db-attribute-pair source="prestador_id" target="id"/>
|
|
|
|
</db-relationship>
|
|
|
|
</db-relationship>
|
|
|
|
@ -1178,7 +1188,7 @@
|
|
|
|
<obj-relationship name="toContactos" source="Prestadores" target="Contactos" db-relationship-path="toContactos"/>
|
|
|
|
<obj-relationship name="toContactos" source="Prestadores" target="Contactos" db-relationship-path="toContactos"/>
|
|
|
|
<obj-relationship name="trabalhadoresConsultasArray" source="Prestadores" target="TrabalhadoresConsultas" db-relationship-path="trabalhadoresConsultasArray"/>
|
|
|
|
<obj-relationship name="trabalhadoresConsultasArray" source="Prestadores" target="TrabalhadoresConsultas" db-relationship-path="trabalhadoresConsultasArray"/>
|
|
|
|
<obj-relationship name="trabalhadoresConsultasDatasArray" source="Prestadores" target="TrabalhadoresConsultasDatas" db-relationship-path="trabalhadoresConsultasDatasArray"/>
|
|
|
|
<obj-relationship name="trabalhadoresConsultasDatasArray" source="Prestadores" target="TrabalhadoresConsultasDatas" db-relationship-path="trabalhadoresConsultasDatasArray"/>
|
|
|
|
<obj-relationship name="trabalhadoresEcdsDatasArray" source="Prestadores" target="TrabalhadoresEcdsDatas" db-relationship-path="trabalhadoresEcdsDatasArray"/>
|
|
|
|
<obj-relationship name="trabalhadoresEcdsDatasArray" source="Prestadores" target="TrabalhadoresEcdsDatas" db-relationship-path="trabalhadoresEcdsDatasArray1"/>
|
|
|
|
<obj-relationship name="toPrestadores" source="PrestadoresGruposProtocolo" target="Prestadores" db-relationship-path="toPrestadores"/>
|
|
|
|
<obj-relationship name="toPrestadores" source="PrestadoresGruposProtocolo" target="Prestadores" db-relationship-path="toPrestadores"/>
|
|
|
|
<obj-relationship name="toPrtGruposProtocolo" source="PrestadoresGruposProtocolo" target="PrtGruposProtocolo" db-relationship-path="toPrtGruposProtocolo"/>
|
|
|
|
<obj-relationship name="toPrtGruposProtocolo" source="PrestadoresGruposProtocolo" target="PrtGruposProtocolo" db-relationship-path="toPrtGruposProtocolo"/>
|
|
|
|
<obj-relationship name="toEmpresas" source="PrtElementosProtocolo" target="Empresas" db-relationship-path="toEmpresas"/>
|
|
|
|
<obj-relationship name="toEmpresas" source="PrtElementosProtocolo" target="Empresas" db-relationship-path="toEmpresas"/>
|
|
|
|
@ -1211,6 +1221,7 @@
|
|
|
|
<obj-relationship name="toTrabalhadores" source="TrabalhadoresEcds" target="Trabalhadores" db-relationship-path="toTrabalhadores"/>
|
|
|
|
<obj-relationship name="toTrabalhadores" source="TrabalhadoresEcds" target="Trabalhadores" db-relationship-path="toTrabalhadores"/>
|
|
|
|
<obj-relationship name="toTrabalhadoresProcesso" source="TrabalhadoresEcds" target="TrabalhadoresProcesso" db-relationship-path="toTrabalhadoresProcesso"/>
|
|
|
|
<obj-relationship name="toTrabalhadoresProcesso" source="TrabalhadoresEcds" target="TrabalhadoresProcesso" db-relationship-path="toTrabalhadoresProcesso"/>
|
|
|
|
<obj-relationship name="trabalhadoresEcdsDatasArray" source="TrabalhadoresEcds" target="TrabalhadoresEcdsDatas" db-relationship-path="trabalhadoresEcdsDatasArray"/>
|
|
|
|
<obj-relationship name="trabalhadoresEcdsDatasArray" source="TrabalhadoresEcds" target="TrabalhadoresEcdsDatas" db-relationship-path="trabalhadoresEcdsDatasArray"/>
|
|
|
|
|
|
|
|
<obj-relationship name="toAnalisador" source="TrabalhadoresEcdsDatas" target="Prestadores" db-relationship-path="toAnalisador"/>
|
|
|
|
<obj-relationship name="toPrestadores" source="TrabalhadoresEcdsDatas" target="Prestadores" db-relationship-path="toPrestadores"/>
|
|
|
|
<obj-relationship name="toPrestadores" source="TrabalhadoresEcdsDatas" target="Prestadores" db-relationship-path="toPrestadores"/>
|
|
|
|
<obj-relationship name="toTrabalhadoresEcds" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcds" db-relationship-path="toTrabalhadoresEcds"/>
|
|
|
|
<obj-relationship name="toTrabalhadoresEcds" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcds" db-relationship-path="toTrabalhadoresEcds"/>
|
|
|
|
<obj-relationship name="trabalhadoresEcdArray" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcd" db-relationship-path="trabalhadoresEcdArray"/>
|
|
|
|
<obj-relationship name="trabalhadoresEcdArray" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcd" db-relationship-path="trabalhadoresEcdArray"/>
|
|
|
|
|