@ -22,6 +22,9 @@
<db-attribute name= "nome" type= "VARCHAR" length= "255" />
<db-attribute name= "telefone" type= "VARCHAR" length= "255" />
<db-attribute name= "telemovel" type= "VARCHAR" length= "255" />
<db-key-generator >
<db-generator-type > ORACLE</db-generator-type>
</db-key-generator>
</db-entity>
<db-entity name= "ecd_oficial" schema= "public" >
<db-attribute name= "activo" type= "CHAR" length= "1" />
@ -90,7 +93,8 @@
<db-entity name= "estabelecimentos" schema= "public" >
<db-attribute name= "actualizacao" type= "TIMESTAMP" length= "29" />
<db-attribute name= "codigo_postal" type= "VARCHAR" length= "255" />
<db-attribute name= "contacto" type= "VARCHAR" length= "255" />
<db-attribute name= "contacto_backup" type= "VARCHAR" length= "255" />
<db-attribute name= "contacto_id" type= "INTEGER" length= "10" />
<db-attribute name= "empresa_id" type= "INTEGER" isMandatory= "true" length= "10" />
<db-attribute name= "historico" type= "VARCHAR" length= "65535" />
<db-attribute name= "id" type= "INTEGER" isPrimaryKey= "true" isMandatory= "true" length= "10" />
@ -100,6 +104,8 @@
<db-attribute name= "morada" 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= "prestador_consulta_id" type= "INTEGER" length= "10" />
<db-attribute name= "prestador_ecds_id" type= "INTEGER" length= "10" />
</db-entity>
<db-entity name= "etiquetas" schema= "public" >
<db-attribute name= "altura" type= "REAL" length= "8" scale= "8" />
@ -400,9 +406,12 @@
<db-attribute name= "ecd_oficial_id" 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= "prestador_id" type= "INTEGER" length= "10" />
<db-attribute name= "trabalhadores_ecds_datas_id" type= "INTEGER" length= "10" />
<db-attribute name= "trabalhadores_ecds_id" type= "INTEGER" length= "10" />
<db-key-generator >
<db-generator-type > ORACLE</db-generator-type>
<db-generator-name > trabalhadores_ecd_id_seq</db-generator-name>
<db-key-cache-size > 1</db-key-cache-size>
</db-key-generator>
</db-entity>
<db-entity name= "trabalhadores_ecds" schema= "public" >
<db-attribute name= "data" type= "DATE" length= "13" />
@ -475,26 +484,29 @@
<db-key-cache-size > 1</db-key-cache-size>
</db-key-generator>
</db-entity>
<obj-entity name= "Avisos" className= "siprp.database.cayenne.objects.Avisos" dbEntityName= "avisos" >
<obj-entity name= "Avisos" className= "siprp.database.cayenne.objects.Avisos" dbEntityName= "avisos" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "dataAviso" type= "java.util.Date" db-attribute-path= "data_aviso" />
<obj-attribute name= "dataEvento" type= "java.util.Date" db-attribute-path= "data_evento" />
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "eventoId" type= "java.lang.Integer" db-attribute-path= "evento_id" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "tipo" type= "java.lang.Integer" db-attribute-path= "tipo" />
<obj-attribute name= "trabalhadorId" type= "java.lang.Integer" db-attribute-path= "trabalhador_id" />
</obj-entity>
<obj-entity name= "Contactos" className= "siprp.database.cayenne.objects.Contactos" dbEntityName= "contactos" >
<obj-entity name= "Contactos" className= "siprp.database.cayenne.objects.Contactos" dbEntityName= "contactos" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "cargo" type= "java.lang.String" db-attribute-path= "cargo" />
<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" />
<obj-attribute name= "nome" type= "java.lang.String" db-attribute-path= "nome" />
<obj-attribute name= "telefone" type= "java.lang.String" db-attribute-path= "telefone" />
<obj-attribute name= "telemovel" type= "java.lang.String" db-attribute-path= "telemovel" />
</obj-entity>
<obj-entity name= "EcdOficial" className= "siprp.database.cayenne.objects.EcdOficial" dbEntityName= "ecd_oficial" >
<obj-entity name= "EcdOficial" className= "siprp.database.cayenne.objects.EcdOficial" dbEntityName= "ecd_oficial" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "activo" type= "java.lang.String" db-attribute-path= "activo" />
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "descricaoPlain" type= "java.lang.String" db-attribute-path= "descricao_plain" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "ordem" type= "java.lang.Integer" db-attribute-path= "ordem" />
</obj-entity>
<obj-entity name= "Empresas" className= "siprp.database.cayenne.objects.Empresas" dbEntityName= "empresas" superClassName= "siprp.database.cayenne.objects.BaseObject" >
@ -540,16 +552,17 @@
<obj-attribute name= "servicoSaudeTipo" type= "java.lang.Integer" db-attribute-path= "servico_saude_tipo" />
<obj-attribute name= "servicos" type= "java.lang.Integer" db-attribute-path= "servicos" />
</obj-entity>
<obj-entity name= "Errors" className= "siprp.database.cayenne.objects.Errors" dbEntityName= "errors" >
<obj-entity name= "Errors" className= "siprp.database.cayenne.objects.Errors" dbEntityName= "errors" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "date" type= "java.util.Date" db-attribute-path= "date" />
<obj-attribute name= "description" type= "java.lang.String" db-attribute-path= "description" />
<obj-attribute name= "environment" type= "java.lang.String" db-attribute-path= "environment" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "type" type= "java.lang.String" db-attribute-path= "type" />
</obj-entity>
<obj-entity name= "Estabelecimentos" className= "siprp.database.cayenne.objects.Estabelecimentos" dbEntityName= "estabelecimentos" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "actualizacao" type= "java.util.Date" db-attribute-path= "actualizacao" />
<obj-attribute name= "codigoPostal" type= "java.lang.String" db-attribute-path= "codigo_postal" />
<obj-attribute name= "contacto " type= "java.lang.String" db-attribute-path= "contacto "/>
<obj-attribute name= "contacto Backup " type= "java.lang.String" db-attribute-path= "contacto _backup "/>
<obj-attribute name= "historico" type= "java.lang.String" db-attribute-path= "historico" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "inactivo" type= "java.lang.String" db-attribute-path= "inactivo" />
@ -558,13 +571,14 @@
<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-entity>
<obj-entity name= "Etiquetas" className= "siprp.database.cayenne.objects.Etiquetas" dbEntityName= "etiquetas" >
<obj-entity name= "Etiquetas" className= "siprp.database.cayenne.objects.Etiquetas" dbEntityName= "etiquetas" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "altura" type= "java.lang.Float" db-attribute-path= "altura" />
<obj-attribute name= "alturaFolha" type= "java.lang.Float" db-attribute-path= "altura_folha" />
<obj-attribute name= "colunas" type= "java.lang.Integer" db-attribute-path= "colunas" />
<obj-attribute name= "continua" type= "java.lang.String" db-attribute-path= "continua" />
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "descricaoPlain" type= "java.lang.String" db-attribute-path= "descricao_plain" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "largura" type= "java.lang.Float" db-attribute-path= "largura" />
<obj-attribute name= "larguraFolha" type= "java.lang.Float" db-attribute-path= "largura_folha" />
<obj-attribute name= "linhas" type= "java.lang.Integer" db-attribute-path= "linhas" />
@ -573,9 +587,10 @@
<obj-attribute name= "margemHorizontalFolha" type= "java.lang.Float" db-attribute-path= "margem_horizontal_folha" />
<obj-attribute name= "margemVerticalFolha" type= "java.lang.Float" db-attribute-path= "margem_vertical_folha" />
</obj-entity>
<obj-entity name= "Exames" className= "siprp.database.cayenne.objects.Exames" dbEntityName= "exames" >
<obj-entity name= "Exames" className= "siprp.database.cayenne.objects.Exames" dbEntityName= "exames" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<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= "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" />
@ -590,107 +605,123 @@
<obj-attribute name= "tipo" type= "java.lang.Integer" db-attribute-path= "tipo" />
<obj-attribute name= "trabalhadorId" type= "java.lang.Integer" db-attribute-path= "trabalhador_id" />
</obj-entity>
<obj-entity name= "ExamesPerfis" className= "siprp.database.cayenne.objects.ExamesPerfis" dbEntityName= "exames_perfis" >
<obj-entity name= "ExamesPerfis" className= "siprp.database.cayenne.objects.ExamesPerfis" dbEntityName= "exames_perfis" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "multiplicador" type= "java.lang.Integer" db-attribute-path= "multiplicador" />
<obj-attribute name= "perfil" type= "java.lang.Integer" db-attribute-path= "perfil" />
</obj-entity>
<obj-entity name= "ExamesPortaria" className= "siprp.database.cayenne.objects.ExamesPortaria" dbEntityName= "exames_portaria" >
<obj-entity name= "ExamesPortaria" className= "siprp.database.cayenne.objects.ExamesPortaria" dbEntityName= "exames_portaria" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "dataEntrada" type= "java.util.Date" db-attribute-path= "data_entrada" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "portaria" type= "java.lang.String" db-attribute-path= "portaria" />
</obj-entity>
<obj-entity name= "HistoricoEstabelecimento" className= "siprp.database.cayenne.objects.HistoricoEstabelecimento" dbEntityName= "historico_estabelecimento" >
<obj-entity name= "HistoricoEstabelecimento" className= "siprp.database.cayenne.objects.HistoricoEstabelecimento" dbEntityName= "historico_estabelecimento" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "texto" type= "java.lang.String" db-attribute-path= "texto" />
</obj-entity>
<obj-entity name= "Ids" className= "siprp.database.cayenne.objects.Ids" dbEntityName= "ids" >
<obj-entity name= "Ids" className= "siprp.database.cayenne.objects.Ids" dbEntityName= "ids" superClassName= "siprp.database.cayenne.objects.BaseObject" >
</obj-entity>
<obj-entity name= "Lembretes" className= "siprp.database.cayenne.objects.Lembretes" dbEntityName= "lembretes" >
<obj-entity name= "Lembretes" className= "siprp.database.cayenne.objects.Lembretes" dbEntityName= "lembretes" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "enviarEmail" type= "java.lang.String" db-attribute-path= "enviar_email" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "periodicidadeDias" type= "java.lang.Integer" db-attribute-path= "periodicidade_dias" />
<obj-attribute name= "periodicidadeMeses" type= "java.lang.Integer" db-attribute-path= "periodicidade_meses" />
<obj-attribute name= "texto" type= "java.lang.String" db-attribute-path= "texto" />
<obj-attribute name= "ultimoEnvio" type= "java.util.Date" db-attribute-path= "ultimo_envio" />
</obj-entity>
<obj-entity name= "LembretesTipos" className= "siprp.database.cayenne.objects.LembretesTipos" dbEntityName= "lembretes_tipos" >
<obj-entity name= "LembretesTipos" className= "siprp.database.cayenne.objects.LembretesTipos" dbEntityName= "lembretes_tipos" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "activo" type= "java.lang.String" db-attribute-path= "activo" />
<obj-attribute name= "codigo" type= "java.lang.String" db-attribute-path= "codigo" />
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "ordem" type= "java.lang.Integer" db-attribute-path= "ordem" />
</obj-entity>
<obj-entity name= "MarcacoesEmpresa" className= "siprp.database.cayenne.objects.MarcacoesEmpresa" dbEntityName= "marcacoes_empresa" >
<obj-entity name= "MarcacoesEmpresa" className= "siprp.database.cayenne.objects.MarcacoesEmpresa" dbEntityName= "marcacoes_empresa" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "realizada" type= "java.lang.String" db-attribute-path= "realizada" />
<obj-attribute name= "texto" type= "java.lang.String" db-attribute-path= "texto" />
</obj-entity>
<obj-entity name= "MarcacoesEstabelecimento" className= "siprp.database.cayenne.objects.MarcacoesEstabelecimento" dbEntityName= "marcacoes_estabelecimento" >
<obj-entity name= "MarcacoesEstabelecimento" className= "siprp.database.cayenne.objects.MarcacoesEstabelecimento" dbEntityName= "marcacoes_estabelecimento" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<obj-attribute name= "dataEmail" type= "java.util.Date" db-attribute-path= "data_email" />
<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= "observacoes" type= "java.lang.String" db-attribute-path= "observacoes" />
<obj-attribute name= "realizada" type= "java.lang.String" db-attribute-path= "realizada" />
</obj-entity>
<obj-entity name= "MarcacoesGruposRealizados" className= "siprp.database.cayenne.objects.MarcacoesGruposRealizados" dbEntityName= "marcacoes_grupos_realizados" >
<obj-entity name= "MarcacoesGruposRealizados" className= "siprp.database.cayenne.objects.MarcacoesGruposRealizados" dbEntityName= "marcacoes_grupos_realizados" superClassName= "siprp.database.cayenne.objects.BaseObject" >
</obj-entity>
<obj-entity name= "MarcacoesTecnicosHst" className= "siprp.database.cayenne.objects.MarcacoesTecnicosHst" dbEntityName= "marcacoes_tecnicos_hst" >
<obj-entity name= "MarcacoesTecnicosHst" className= "siprp.database.cayenne.objects.MarcacoesTecnicosHst" dbEntityName= "marcacoes_tecnicos_hst" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "identificador" type= "java.lang.Integer" db-attribute-path= "identificador" />
<obj-attribute name= "inactivo" type= "java.lang.String" db-attribute-path= "inactivo" />
<obj-attribute name= "iniciais" type= "java.lang.String" db-attribute-path= "iniciais" />
<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-entity>
<obj-entity name= "MarcacoesTrabalhador" className= "siprp.database.cayenne.objects.MarcacoesTrabalhador" dbEntityName= "marcacoes_trabalhador" >
<obj-entity name= "MarcacoesTrabalhador" className= "siprp.database.cayenne.objects.MarcacoesTrabalhador" dbEntityName= "marcacoes_trabalhador" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<obj-attribute name= "dataEmail" type= "java.util.Date" db-attribute-path= "data_email" />
<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= "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" />
<obj-attribute name= "tipo" type= "java.lang.Integer" db-attribute-path= "tipo" />
<obj-attribute name= "trabalhadorId" type= "java.lang.Integer" db-attribute-path= "trabalhador_id" />
</obj-entity>
<obj-entity name= "MarcacoesTrabalhadorEstados" className= "siprp.database.cayenne.objects.MarcacoesTrabalhadorEstados" dbEntityName= "marcacoes_trabalhador_estados" >
<obj-entity name= "MarcacoesTrabalhadorEstados" className= "siprp.database.cayenne.objects.MarcacoesTrabalhadorEstados" dbEntityName= "marcacoes_trabalhador_estados" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<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-entity>
<obj-entity name= "Medicos" className= "siprp.database.cayenne.objects.Medicos" dbEntityName= "medicos" >
<obj-entity name= "Medicos" className= "siprp.database.cayenne.objects.Medicos" dbEntityName= "medicos" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "inactivo" type= "java.lang.String" db-attribute-path= "inactivo" />
<obj-attribute name= "nome" type= "java.lang.String" db-attribute-path= "nome" />
<obj-attribute name= "numeroCedula" type= "java.lang.String" db-attribute-path= "numero_cedula" />
</obj-entity>
<obj-entity name= "Prestadores" className= "siprp.database.cayenne.objects.Prestadores" dbEntityName= "prestadores" >
<obj-entity name= "Prestadores" className= "siprp.database.cayenne.objects.Prestadores" dbEntityName= "prestadores" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "activo" type= "java.lang.String" db-attribute-path= "activo" />
<obj-attribute name= "codigoPostal" type= "java.lang.String" db-attribute-path= "codigo_postal" />
<obj-attribute name= "contribuinte" type= "java.lang.String" db-attribute-path= "contribuinte" />
<obj-attribute name= "fazConsultas" type= "java.lang.String" db-attribute-path= "faz_consultas" />
<obj-attribute name= "fazEcds" type= "java.lang.String" db-attribute-path= "faz_ecds" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "localidade" type= "java.lang.String" db-attribute-path= "localidade" />
<obj-attribute name= "localidadeCp" type= "java.lang.String" db-attribute-path= "localidade_cp" />
<obj-attribute name= "morada" type= "java.lang.String" db-attribute-path= "morada" />
<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-entity>
<obj-entity name= "PrestadoresGruposProtocolo" className= "siprp.database.cayenne.objects.PrestadoresGruposProtocolo" dbEntityName= "prestadores_grupos_protocolo" >
<obj-entity name= "PrestadoresGruposProtocolo" className= "siprp.database.cayenne.objects.PrestadoresGruposProtocolo" dbEntityName= "prestadores_grupos_protocolo" superClassName= "siprp.database.cayenne.objects.BaseObject" >
</obj-entity>
<obj-entity name= "PrtElementosProtocolo" className= "siprp.database.cayenne.objects.PrtElementosProtocolo" dbEntityName= "prt_elementos_protocolo" >
<obj-entity name= "PrtElementosProtocolo" className= "siprp.database.cayenne.objects.PrtElementosProtocolo" dbEntityName= "prt_elementos_protocolo" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "numeroPerfil" type= "java.lang.Integer" db-attribute-path= "numero_perfil" />
</obj-entity>
<obj-entity name= "PrtGruposProtocolo" className= "siprp.database.cayenne.objects.PrtGruposProtocolo" dbEntityName= "prt_grupos_protocolo" >
<obj-entity name= "PrtGruposProtocolo" className= "siprp.database.cayenne.objects.PrtGruposProtocolo" dbEntityName= "prt_grupos_protocolo" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "descricaoPlain" type= "java.lang.String" db-attribute-path= "descricao_plain" />
<obj-attribute name= "grupoReal" type= "java.lang.String" db-attribute-path= "grupo_real" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "ordem" type= "java.lang.Integer" db-attribute-path= "ordem" />
</obj-entity>
<obj-entity name= "PrtTiposElementosProtocolo" className= "siprp.database.cayenne.objects.PrtTiposElementosProtocolo" dbEntityName= "prt_tipos_elementos_protocolo" >
<obj-entity name= "PrtTiposElementosProtocolo" className= "siprp.database.cayenne.objects.PrtTiposElementosProtocolo" dbEntityName= "prt_tipos_elementos_protocolo" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "descricaoPlain" type= "java.lang.String" db-attribute-path= "descricao_plain" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "ordem" type= "java.lang.Integer" db-attribute-path= "ordem" />
</obj-entity>
<obj-entity name= "TiposExamesComp" className= "siprp.database.cayenne.objects.TiposExamesComp" dbEntityName= "tipos_exames_comp" >
<obj-entity name= "TiposExamesComp" className= "siprp.database.cayenne.objects.TiposExamesComp" dbEntityName= "tipos_exames_comp" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "descricao" type= "java.lang.String" db-attribute-path= "descricao" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "ordem" type= "java.lang.Integer" db-attribute-path= "ordem" />
</obj-entity>
<obj-entity name= "Trabalhadores" className= "siprp.database.cayenne.objects.Trabalhadores" dbEntityName= "trabalhadores" superClassName= "siprp.database.cayenne.objects.BaseObject" >
@ -740,21 +771,26 @@
<obj-entity name= "TrabalhadoresEcds" className= "siprp.database.cayenne.objects.TrabalhadoresEcds" dbEntityName= "trabalhadores_ecds" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<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-entity>
<obj-entity name= "TrabalhadoresEcdsDatas" className= "siprp.database.cayenne.objects.TrabalhadoresEcdsDatas" 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= "estado" type= "java.lang.Integer" db-attribute-path= "estado" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
</obj-entity>
<obj-entity name= "TrabalhadoresEcdsDatasEmails" className= "siprp.database.cayenne.objects.TrabalhadoresEcdsDatasEmails" dbEntityName= "trabalhadores_ecds_datas_emails" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "body" type= "java.lang.String" db-attribute-path= "body" />
<obj-attribute name= "data" type= "java.util.Date" db-attribute-path= "data" />
<obj-attribute name= "destination" type= "java.lang.String" db-attribute-path= "destination" />
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "subject" type= "java.lang.String" db-attribute-path= "subject" />
</obj-entity>
<obj-entity name= "TrabalhadoresEcdsDatasObservacoes" className= "siprp.database.cayenne.objects.TrabalhadoresEcdsDatasObservacoes" dbEntityName= "trabalhadores_ecds_datas_observacoes" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
<obj-attribute name= "observacao" type= "java.lang.String" db-attribute-path= "observacao" />
</obj-entity>
<obj-entity name= "TrabalhadoresFichasAptidao" className= "siprp.database.cayenne.objects.TrabalhadoresFichasAptidao" dbEntityName= "trabalhadores_fichas_aptidao" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "id" type= "java.lang.Integer" db-attribute-path= "id" />
</obj-entity>
<obj-entity name= "TrabalhadoresProcesso" className= "siprp.database.cayenne.objects.TrabalhadoresProcesso" dbEntityName= "trabalhadores_processo" superClassName= "siprp.database.cayenne.objects.BaseObject" >
<obj-attribute name= "dataFim" type= "java.util.Date" db-attribute-path= "data_fim" />
@ -776,6 +812,9 @@
<db-relationship name= "empresasArray1" source= "contactos" target= "empresas" toMany= "true" >
<db-attribute-pair source= "id" target= "contacto_2" />
</db-relationship>
<db-relationship name= "estabelecimentosArray" source= "contactos" target= "estabelecimentos" toMany= "true" >
<db-attribute-pair source= "id" target= "contacto_id" />
</db-relationship>
<db-relationship name= "prestadoresArray" source= "contactos" target= "prestadores" toMany= "true" >
<db-attribute-pair source= "id" target= "contacto_id" />
</db-relationship>
@ -815,12 +854,21 @@
<db-relationship name= "marcacoesEstabelecimentoArray" source= "estabelecimentos" target= "marcacoes_estabelecimento" toMany= "true" >
<db-attribute-pair source= "id" target= "estabelecimento_id" />
</db-relationship>
<db-relationship name= "toContactos" source= "estabelecimentos" target= "contactos" toMany= "false" >
<db-attribute-pair source= "contacto_id" target= "id" />
</db-relationship>
<db-relationship name= "toEmpresas" 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>
<db-relationship name= "toPrestadores" source= "estabelecimentos" target= "prestadores" toMany= "false" >
<db-attribute-pair source= "prestador_consulta_id" target= "id" />
</db-relationship>
<db-relationship name= "toPrestadores1" source= "estabelecimentos" target= "prestadores" toMany= "false" >
<db-attribute-pair source= "prestador_ecds_id" target= "id" />
</db-relationship>
<db-relationship name= "trabalhadoresArray" source= "estabelecimentos" target= "trabalhadores" toMany= "true" >
<db-attribute-pair source= "id" target= "estabelecimento_id" />
</db-relationship>
@ -908,6 +956,12 @@
<db-relationship name= "examesArray" source= "medicos" target= "exames" toMany= "true" >
<db-attribute-pair source= "id" target= "medico_id" />
</db-relationship>
<db-relationship name= "estabelecimentosArray" source= "prestadores" target= "estabelecimentos" toMany= "true" >
<db-attribute-pair source= "id" target= "prestador_consulta_id" />
</db-relationship>
<db-relationship name= "estabelecimentosArray1" source= "prestadores" target= "estabelecimentos" toMany= "true" >
<db-attribute-pair source= "id" target= "prestador_ecds_id" />
</db-relationship>
<db-relationship name= "marcacoesTrabalhadorArray" source= "prestadores" target= "marcacoes_trabalhador" toMany= "true" >
<db-attribute-pair source= "id" target= "prestador_id" />
</db-relationship>
@ -926,9 +980,6 @@
<db-relationship name= "trabalhadoresConsultasDatasArray" source= "prestadores" target= "trabalhadores_consultas_datas" toMany= "true" >
<db-attribute-pair source= "id" target= "prestador_id" />
</db-relationship>
<db-relationship name= "trabalhadoresEcdArray" source= "prestadores" target= "trabalhadores_ecd" toMany= "true" >
<db-attribute-pair source= "id" target= "prestador_id" />
</db-relationship>
<db-relationship name= "trabalhadoresEcdsDatasArray" source= "prestadores" target= "trabalhadores_ecds_datas" toMany= "true" >
<db-attribute-pair source= "id" target= "prestador_id" />
</db-relationship>
@ -1013,15 +1064,9 @@
<db-relationship name= "toEcdOficial" source= "trabalhadores_ecd" target= "ecd_oficial" toMany= "false" >
<db-attribute-pair source= "ecd_oficial_id" target= "id" />
</db-relationship>
<db-relationship name= "toPrestadores" source= "trabalhadores_ecd" target= "prestadores" toMany= "false" >
<db-attribute-pair source= "prestador_id" target= "id" />
</db-relationship>
<db-relationship name= "toPrtTiposElementosProtocolo" source= "trabalhadores_ecd" target= "prt_tipos_elementos_protocolo" toMany= "false" >
<db-attribute-pair source= "ecd_id" target= "id" />
</db-relationship>
<db-relationship name= "toTrabalhadoresEcds" source= "trabalhadores_ecd" target= "trabalhadores_ecds" toMany= "false" >
<db-attribute-pair source= "trabalhadores_ecds_id" target= "id" />
</db-relationship>
<db-relationship name= "toTrabalhadoresEcdsDatas" source= "trabalhadores_ecd" target= "trabalhadores_ecds_datas" toMany= "false" >
<db-attribute-pair source= "trabalhadores_ecds_datas_id" target= "id" />
</db-relationship>
@ -1031,9 +1076,6 @@
<db-relationship name= "toTrabalhadoresProcesso" source= "trabalhadores_ecds" target= "trabalhadores_processo" toMany= "false" >
<db-attribute-pair source= "processo_id" target= "id" />
</db-relationship>
<db-relationship name= "trabalhadoresEcdArray" source= "trabalhadores_ecds" target= "trabalhadores_ecd" toMany= "true" >
<db-attribute-pair source= "id" target= "trabalhadores_ecds_id" />
</db-relationship>
<db-relationship name= "trabalhadoresEcdsDatasArray" source= "trabalhadores_ecds" target= "trabalhadores_ecds_datas" toMany= "true" >
<db-attribute-pair source= "id" target= "trabalhadores_ecds_id" />
</db-relationship>
@ -1080,6 +1122,7 @@
<obj-relationship name= "toEstabelecimentos" source= "Avisos" target= "Estabelecimentos" db-relationship-path= "toEstabelecimentos" />
<obj-relationship name= "empresasArray" source= "Contactos" target= "Empresas" db-relationship-path= "empresasArray" />
<obj-relationship name= "empresasArray1" source= "Contactos" target= "Empresas" db-relationship-path= "empresasArray1" />
<obj-relationship name= "estabelecimentosArray" source= "Contactos" target= "Estabelecimentos" db-relationship-path= "estabelecimentosArray" />
<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= "avisosArray" source= "Empresas" target= "Avisos" db-relationship-path= "avisosArray" />
@ -1093,8 +1136,11 @@
<obj-relationship name= "historicoEstabelecimentoArray" source= "Estabelecimentos" target= "HistoricoEstabelecimento" db-relationship-path= "historicoEstabelecimentoArray" />
<obj-relationship name= "lembretesArray" source= "Estabelecimentos" target= "Lembretes" db-relationship-path= "lembretesArray" />
<obj-relationship name= "marcacoesEstabelecimentoArray" source= "Estabelecimentos" target= "MarcacoesEstabelecimento" db-relationship-path= "marcacoesEstabelecimentoArray" />
<obj-relationship name= "toContactos" source= "Estabelecimentos" target= "Contactos" db-relationship-path= "toContactos" />
<obj-relationship name= "toEmpresas" source= "Estabelecimentos" target= "Empresas" db-relationship-path= "toEmpresas" />
<obj-relationship name= "toMedicos" source= "Estabelecimentos" target= "Medicos" db-relationship-path= "toMedicos" />
<obj-relationship name= "toPrestadores" source= "Estabelecimentos" target= "Prestadores" db-relationship-path= "toPrestadores" />
<obj-relationship name= "toPrestadores1" source= "Estabelecimentos" target= "Prestadores" db-relationship-path= "toPrestadores1" />
<obj-relationship name= "trabalhadoresArray" source= "Estabelecimentos" target= "Trabalhadores" db-relationship-path= "trabalhadoresArray" />
<obj-relationship name= "toMedicos" source= "Exames" target= "Medicos" db-relationship-path= "toMedicos" />
<obj-relationship name= "trabalhadoresFichasAptidaoArray" source= "Exames" target= "TrabalhadoresFichasAptidao" db-relationship-path= "trabalhadoresFichasAptidaoArray" />
@ -1124,13 +1170,14 @@
<obj-relationship name= "toPrestadores" source= "MarcacoesTrabalhadorEstados" target= "Prestadores" db-relationship-path= "toPrestadores" />
<obj-relationship name= "estabelecimentosArray" source= "Medicos" target= "Estabelecimentos" db-relationship-path= "estabelecimentosArray" />
<obj-relationship name= "examesArray" source= "Medicos" target= "Exames" db-relationship-path= "examesArray" />
<obj-relationship name= "estabelecimentosArray" source= "Prestadores" target= "Estabelecimentos" db-relationship-path= "estabelecimentosArray" />
<obj-relationship name= "estabelecimentosArray1" source= "Prestadores" target= "Estabelecimentos" db-relationship-path= "estabelecimentosArray1" />
<obj-relationship name= "marcacoesTrabalhadorArray" source= "Prestadores" target= "MarcacoesTrabalhador" db-relationship-path= "marcacoesTrabalhadorArray" />
<obj-relationship name= "marcacoesTrabalhadorEstadosArray" source= "Prestadores" target= "MarcacoesTrabalhadorEstados" db-relationship-path= "marcacoesTrabalhadorEstadosArray" />
<obj-relationship name= "prestadoresGruposProtocoloArray" source= "Prestadores" target= "PrestadoresGruposProtocolo" db-relationship-path= "prestadoresGruposProtocoloArray" />
<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= "trabalhadoresConsultasDatasArray" source= "Prestadores" target= "TrabalhadoresConsultasDatas" db-relationship-path= "trabalhadoresConsultasDatasArray" />
<obj-relationship name= "trabalhadoresEcdArray" source= "Prestadores" target= "TrabalhadoresEcd" db-relationship-path= "trabalhadoresEcdArray" />
<obj-relationship name= "trabalhadoresEcdsDatasArray" source= "Prestadores" target= "TrabalhadoresEcdsDatas" db-relationship-path= "trabalhadoresEcdsDatasArray" />
<obj-relationship name= "toPrestadores" source= "PrestadoresGruposProtocolo" target= "Prestadores" db-relationship-path= "toPrestadores" />
<obj-relationship name= "toPrtGruposProtocolo" source= "PrestadoresGruposProtocolo" target= "PrtGruposProtocolo" db-relationship-path= "toPrtGruposProtocolo" />
@ -1159,13 +1206,10 @@
<obj-relationship name= "toTrabalhadoresConsultasDatas" source= "TrabalhadoresConsultasDatasEmails" target= "TrabalhadoresConsultasDatas" db-relationship-path= "toTrabalhadoresConsultasDatas" />
<obj-relationship name= "toTrabalhadoresConsultasDatas" source= "TrabalhadoresConsultasDatasObservacoes" target= "TrabalhadoresConsultasDatas" db-relationship-path= "toTrabalhadoresConsultasDatas" />
<obj-relationship name= "toEcdOficial" source= "TrabalhadoresEcd" target= "EcdOficial" db-relationship-path= "toEcdOficial" />
<obj-relationship name= "toPrestadores" source= "TrabalhadoresEcd" target= "Prestadores" db-relationship-path= "toPrestadores" />
<obj-relationship name= "toPrtTiposElementosProtocolo" source= "TrabalhadoresEcd" target= "PrtTiposElementosProtocolo" db-relationship-path= "toPrtTiposElementosProtocolo" />
<obj-relationship name= "toTrabalhadoresEcds" source= "TrabalhadoresEcd" target= "TrabalhadoresEcds" db-relationship-path= "toTrabalhadoresEcds" />
<obj-relationship name= "toTrabalhadoresEcdsDatas" source= "TrabalhadoresEcd" target= "TrabalhadoresEcdsDatas" db-relationship-path= "toTrabalhadoresEcdsDatas" />
<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= "trabalhadoresEcdArray" source= "TrabalhadoresEcds" target= "TrabalhadoresEcd" db-relationship-path= "trabalhadoresEcdArray" />
<obj-relationship name= "trabalhadoresEcdsDatasArray" source= "TrabalhadoresEcds" target= "TrabalhadoresEcdsDatas" db-relationship-path= "trabalhadoresEcdsDatasArray" />
<obj-relationship name= "toPrestadores" source= "TrabalhadoresEcdsDatas" target= "Prestadores" db-relationship-path= "toPrestadores" />
<obj-relationship name= "toTrabalhadoresEcds" source= "TrabalhadoresEcdsDatas" target= "TrabalhadoresEcds" db-relationship-path= "toTrabalhadoresEcds" />