<?xml version="1.0" encoding="utf-8"?>
<data-map project-version="3.0">
	<property name="defaultLockType" value="optimistic"/>
	<property name="defaultPackage" value="siprp.database.cayenne.objects"/>
	<property name="defaultSchema" value="public"/>
	<db-entity name="avisos" schema="public">
		<db-attribute name="data_aviso" type="DATE" isMandatory="true" length="13"/>
		<db-attribute name="data_evento" type="DATE" length="13"/>
		<db-attribute name="descricao" type="VARCHAR" length="255"/>
		<db-attribute name="empresa_id" type="INTEGER" length="10"/>
		<db-attribute name="estabelecimento_id" type="INTEGER" length="10"/>
		<db-attribute name="evento_id" type="INTEGER" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="tipo" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="trabalhador_id" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="contactos" schema="public">
		<db-attribute name="cargo" type="VARCHAR" length="255"/>
		<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"/>
		<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"/>
		<db-attribute name="descricao" type="VARCHAR" length="255"/>
		<db-attribute name="descricao_plain" type="VARCHAR" length="255"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="ordem" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>ecd_oficial_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="email_plano_de_actuacao" schema="public">
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="estabelecimento_id" type="INTEGER" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>email_plano_de_actuacao_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</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"/>
		<db-attribute name="actividade" type="VARCHAR" length="255"/>
		<db-attribute name="actualizacao" type="TIMESTAMP" length="29"/>
		<db-attribute name="b_consultas" type="CHAR" length="1"/>
		<db-attribute name="b_exames" type="CHAR" length="1"/>
		<db-attribute name="cae" type="VARCHAR" length="255"/>
		<db-attribute name="codigo_1" type="VARCHAR" length="255"/>
		<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="concelho" type="VARCHAR" length="255"/>
		<db-attribute name="contacto_1" type="INTEGER" length="10"/>
		<db-attribute name="contacto_2" type="INTEGER" length="10"/>
		<db-attribute name="contribuinte" type="VARCHAR" length="255"/>
		<db-attribute name="data_aceitacao" type="DATE" length="13"/>
		<db-attribute name="data_cancelamento" type="DATE" length="13"/>
		<db-attribute name="data_envio_contrato" type="DATE" length="13"/>
		<db-attribute name="data_envio_idict" type="DATE" length="13"/>
		<db-attribute name="data_proposta" type="DATE" length="13"/>
		<db-attribute name="data_recepcao_contrato" type="DATE" length="13"/>
		<db-attribute name="data_relatorio_anual" type="DATE" length="13"/>
		<db-attribute name="designacao_social" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="designacao_social_plain" type="VARCHAR" length="255"/>
		<db-attribute name="distrito" type="VARCHAR" length="255"/>
		<db-attribute name="duracao" type="INTEGER" length="10"/>
		<db-attribute name="empresa_logo_id" type="INTEGER"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="inactivo" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="inicio_contrato" type="DATE" length="13"/>
		<db-attribute name="localidade" type="VARCHAR" length="255"/>
		<db-attribute name="morada" type="VARCHAR" length="255"/>
		<db-attribute name="numero_trabalhadores" type="INTEGER" length="10"/>
		<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"/>
		<db-attribute name="servico_saude_designacao" type="VARCHAR" length="255"/>
		<db-attribute name="servico_saude_tipo" type="INTEGER" length="10"/>
		<db-attribute name="servicos" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="errors" schema="public">
		<db-attribute name="date" type="TIMESTAMP" length="29"/>
		<db-attribute name="description" type="VARCHAR" length="65535"/>
		<db-attribute name="environment" type="VARCHAR" length="255"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="type" type="VARCHAR" length="20"/>
	</db-entity>
	<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_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"/>
		<db-attribute name="inactivo" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="localidade" type="VARCHAR" length="255"/>
		<db-attribute name="medico_id" type="INTEGER" length="10"/>
		<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"/>
		<db-attribute name="altura_folha" type="REAL" length="8" scale="8"/>
		<db-attribute name="colunas" type="INTEGER" length="10"/>
		<db-attribute name="continua" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="descricao" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="descricao_plain" type="VARCHAR" length="2147483647"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="largura" type="REAL" length="8" scale="8"/>
		<db-attribute name="largura_folha" type="REAL" length="8" scale="8"/>
		<db-attribute name="linhas" type="INTEGER" length="10"/>
		<db-attribute name="margem_cima" type="REAL" length="8" scale="8"/>
		<db-attribute name="margem_esquerda" type="REAL" length="8" scale="8"/>
		<db-attribute name="margem_horizontal_folha" type="REAL" length="8" scale="8"/>
		<db-attribute name="margem_vertical_folha" type="REAL" length="8" scale="8"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>etiquetas_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="exames" schema="public">
		<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="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"/>
		<db-attribute name="outra_funcao_1" type="VARCHAR" length="255"/>
		<db-attribute name="outra_funcao_2" type="VARCHAR" length="255"/>
		<db-attribute name="outra_funcao_3" type="VARCHAR" length="255"/>
		<db-attribute name="outra_funcao_4" type="VARCHAR" length="255"/>
		<db-attribute name="outras_recomendacoes" type="VARCHAR" length="65535"/>
		<db-attribute name="outro_tipo" type="VARCHAR" length="255"/>
		<db-attribute name="pdf" type="LONGVARBINARY" length="2147483647"/>
		<db-attribute name="proximo_exame" type="DATE" length="13"/>
		<db-attribute name="resultado" type="INTEGER" length="10"/>
		<db-attribute name="tipo" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="trabalhador_id" type="INTEGER" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="exames_perfis" schema="public">
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="multiplicador" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="perfil" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="tipo" type="INTEGER" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="exames_portaria" schema="public">
		<db-attribute name="data_entrada" type="TIMESTAMP" isMandatory="true" length="29"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="portaria" type="VARCHAR" isMandatory="true" length="255"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>exames_portaria_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="historico_estabelecimento" schema="public">
		<db-attribute name="data" type="DATE" length="13"/>
		<db-attribute name="estabelecimento_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="texto" type="VARCHAR" length="65535"/>
	</db-entity>
	<db-entity name="hs_area" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="256"/>
		<db-attribute name="empresa_id" type="INTEGER" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_area_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_email" schema="public">
		<db-attribute name="email" type="VARCHAR" length="128"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_email_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_email_empresa" schema="public">
		<db-attribute name="email_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="empresa_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_email_estabelecimento" schema="public">
		<db-attribute name="email_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="estabelecimento_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_equipamento" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP" length="29"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="marca" type="VARCHAR" length="255"/>
		<db-attribute name="modelo" type="VARCHAR" length="255"/>
		<db-attribute name="tipo" type="VARCHAR" isMandatory="true" length="512"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_equipamento_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_legislacao" schema="public">
		<db-attribute name="categoria_id" type="INTEGER" length="10"/>
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="1024"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_legislacao_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_legislacao_categoria" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_legislacao_categoria_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_legislacao_empresa" schema="public">
		<db-attribute name="empresa_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="legislacao_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_legislacao_estabelecimento" schema="public">
		<db-attribute name="estabelecimento_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="legislacao_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_medida" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="1024"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="requesitos_legais" type="VARCHAR" length="1024"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_medida_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_normalizacao" schema="public">
		<db-attribute name="codigo" type="VARCHAR" isMandatory="true" length="128"/>
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="descricao" type="VARCHAR" isMandatory="true" length="1024"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="portuguesa" type="BIT" isMandatory="true" length="1"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_normalizacao_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_normalizacao_empresa" schema="public">
		<db-attribute name="empresa_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="normalizacao_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_normalizacao_estabelecimento" schema="public">
		<db-attribute name="estabelecimento_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="normalizacao_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_posto" schema="public">
		<db-attribute name="area_id" type="INTEGER" length="10"/>
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="256"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_posto_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_posto_estabelecimento" schema="public">
		<db-attribute name="estabelecimento_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_posto_medida" schema="public">
		<db-attribute name="medida_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_posto_risco" schema="public">
		<db-attribute name="is_plano_actuacao" type="CHAR" length="1"/>
		<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="probabilidade" type="INTEGER" length="10"/>
		<db-attribute name="risco_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="severidade" type="INTEGER" length="10"/>
		<db-attribute name="valor_qualitativo" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="hs_relatorio" schema="public">
		<db-attribute name="acompanhante1" type="VARCHAR" length="256"/>
		<db-attribute name="acompanhante2" type="VARCHAR" length="256"/>
		<db-attribute name="acompanhante3" type="VARCHAR" length="256"/>
		<db-attribute name="avaliacao_inicial" type="BOOLEAN"/>
		<db-attribute name="data" type="DATE" isMandatory="true" length="13"/>
		<db-attribute name="deleted_date" type="TIMESTAMP" length="29"/>
		<db-attribute name="funcao_acompanhante1" type="VARCHAR" length="128"/>
		<db-attribute name="funcao_acompanhante2" type="VARCHAR" length="128"/>
		<db-attribute name="funcao_acompanhante3" type="VARCHAR" length="128"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="is_submetido" type="TIMESTAMP" length="29"/>
		<db-attribute name="marcacao_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_relatorio_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_relatorio_area" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP" length="29"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="256"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="relatorio_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_relatorio_area_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_relatorio_equipamento" schema="public">
		<db-attribute name="hs_equipamento" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="hs_relatorio_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_relatorio_legislacao" schema="public">
		<db-attribute name="hs_legislacao_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="hs_relatorio_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_relatorio_medida" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="1024"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="requesitos_legais" type="VARCHAR" isMandatory="true" length="1024"/>
		<db-attribute name="risco_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_relatorio_medida_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_relatorio_normalizacao" schema="public">
		<db-attribute name="hs_normalizacao_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="hs_relatorio_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_relatorio_posto" schema="public">
		<db-attribute name="area_id" type="INTEGER" length="10"/>
		<db-attribute name="deleted_date" type="TIMESTAMP" length="29"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="256"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_relatorio_posto_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_relatorio_posto_medida" schema="public">
		<db-attribute name="is_plano_actuacao" type="BOOLEAN"/>
		<db-attribute name="medida_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_relatorio_posto_risco" schema="public">
		<db-attribute name="posto_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="probabilidade" type="INTEGER" length="10"/>
		<db-attribute name="risco_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="severidade" type="INTEGER" length="10"/>
		<db-attribute name="valor_qualitativo_id" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="hs_relatorio_risco" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="relatorio_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_relatorio_risco_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_relatorio_risco_valor_qualitativo" schema="public">
		<db-attribute name="description" type="VARCHAR" length="64"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_risco" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="256"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="tema_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_risco_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="hs_risco_empresa" schema="public">
		<db-attribute name="empresa_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="risco_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_risco_medida" schema="public">
		<db-attribute name="medida_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="risco_id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="hs_risco_tema" schema="public">
		<db-attribute name="deleted_date" type="TIMESTAMP"/>
		<db-attribute name="description" type="VARCHAR" isMandatory="true" length="256"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>hs_risco_tema_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="image" schema="public">
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="image_data" type="LONGVARBINARY" isMandatory="true" length="2147483647"/>
		<db-attribute name="name" type="VARCHAR" isMandatory="true" length="255"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>image_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="lembretes" schema="public">
		<db-attribute name="data" type="DATE" isMandatory="true" length="13"/>
		<db-attribute name="descricao" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="empresa_id" type="INTEGER" length="10"/>
		<db-attribute name="enviar_email" type="CHAR" length="1"/>
		<db-attribute name="estabelecimento_id" type="INTEGER" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="marcacao_estabelecimento_id" type="INTEGER" length="10"/>
		<db-attribute name="marcacao_trabalhador_id" type="INTEGER" length="10"/>
		<db-attribute name="periodicidade_dias" type="INTEGER" length="10"/>
		<db-attribute name="periodicidade_meses" type="INTEGER" length="10"/>
		<db-attribute name="texto" type="VARCHAR" length="16384"/>
		<db-attribute name="tipo_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="trabalhador_id" type="INTEGER" length="10"/>
		<db-attribute name="ultimo_envio" type="DATE" length="13"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>lembretes_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="lembretes_tipos" schema="public">
		<db-attribute name="activo" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="codigo" type="VARCHAR" isMandatory="true" length="16"/>
		<db-attribute name="descricao" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="ordem" type="INTEGER" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>lembretes_tipos_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="marcacoes_empresa" schema="public">
		<db-attribute name="data" type="DATE" isMandatory="true" length="13"/>
		<db-attribute name="empresa_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="realizada" type="CHAR" length="1"/>
		<db-attribute name="texto" type="VARCHAR" length="65535"/>
	</db-entity>
	<db-entity name="marcacoes_estabelecimento" schema="public">
		<db-attribute name="data" type="DATE" isMandatory="true" length="13"/>
		<db-attribute name="data_email" type="DATE" length="13"/>
		<db-attribute name="data_relatorio" type="DATE" length="13"/>
		<db-attribute name="estabelecimento_id" type="INTEGER" isMandatory="true" 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="observacoes" type="VARCHAR" length="2048"/>
		<db-attribute name="realizada" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="tecnico_hst" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="marcacoes_grupos_realizados" schema="public">
		<db-attribute name="grupo_protocolo_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="marcacao_trabalhador_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="marcacoes_trabalhador_estado_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>marcacoes_grupos_realizados_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="marcacoes_tecnicos_hst" schema="public">
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="identificador" type="INTEGER" length="10"/>
		<db-attribute name="inactivo" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="iniciais" type="VARCHAR" isMandatory="true" length="10"/>
		<db-attribute name="nome" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="nome_plain" type="VARCHAR" isMandatory="true" length="255"/>
	</db-entity>
	<db-entity name="marcacoes_trabalhador" schema="public">
		<db-attribute name="data" type="DATE" length="13"/>
		<db-attribute name="data_email" type="DATE" length="13"/>
		<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="motivo" type="INTEGER" length="10"/>
		<db-attribute name="observacoes" type="VARCHAR" length="2048"/>
		<db-attribute name="prestador_id" type="INTEGER" length="10"/>
		<db-attribute name="realizada" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="tipo" type="INTEGER" length="10"/>
		<db-attribute name="trabalhador_id" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="marcacoes_trabalhador_estados" schema="public">
		<db-attribute name="data" 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="marcacao_id" type="INTEGER" length="10"/>
		<db-attribute name="prestador_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>marcacoes_trabalhador_estados_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="medicos" schema="public">
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="inactivo" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="nome" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="numero_cedula" type="VARCHAR" isMandatory="true" length="255"/>
	</db-entity>
	<db-entity name="prestadores" schema="public">
		<db-attribute name="activo" type="CHAR" length="1"/>
		<db-attribute name="codigo_postal" type="VARCHAR" length="16"/>
		<db-attribute name="contacto_id" type="INTEGER" length="10"/>
		<db-attribute name="contribuinte" type="VARCHAR" length="64"/>
		<db-attribute name="faz_consultas" type="CHAR" length="1"/>
		<db-attribute name="faz_ecds" type="CHAR" length="1"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="localidade" type="VARCHAR" length="255"/>
		<db-attribute name="localidade_cp" type="VARCHAR" length="255"/>
		<db-attribute name="morada" type="VARCHAR" length="2048"/>
		<db-attribute name="nome" type="VARCHAR" length="255"/>
		<db-attribute name="nome_plain" type="VARCHAR" length="255"/>
		<db-attribute name="observacoes" type="VARCHAR" length="65535"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>prestadores_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="prestadores_grupos_protocolo" schema="public">
		<db-attribute name="grupo_protocolo_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="prestador_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>prestadores_grupos_protocolo_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="prt_elementos_protocolo" schema="public">
		<db-attribute name="empresa_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="numero_perfil" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="tipo_elemento_protocolo_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>prt_elementos_protocolo_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="prt_grupos_protocolo" schema="public">
		<db-attribute name="analisador_id" type="INTEGER" length="10"/>
		<db-attribute name="descricao" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="descricao_plain" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="grupo_real" type="CHAR" length="1"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="ordem" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="prt_tipos_elementos_protocolo" schema="public">
		<db-attribute name="descricao" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="descricao_plain" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="grupo_protocolo_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="ordem" type="INTEGER" length="10"/>
	</db-entity>
	<db-entity name="tipos_exames_comp" schema="public">
		<db-attribute name="descricao" type="VARCHAR" isMandatory="true" length="255"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="ordem" type="INTEGER" isMandatory="true" length="10"/>
	</db-entity>
	<db-entity name="trabalhadores" schema="public">
		<db-attribute name="actualizacao" type="TIMESTAMP" length="29"/>
		<db-attribute name="bi" type="VARCHAR" length="255"/>
		<db-attribute name="categoria" type="VARCHAR" length="255"/>
		<db-attribute name="data_admissao" type="DATE" length="13"/>
		<db-attribute name="data_admissao_funcao" type="DATE" length="13"/>
		<db-attribute name="data_demissao" type="DATE" length="13"/>
		<db-attribute name="data_nascimento" type="DATE" length="13"/>
		<db-attribute name="estabelecimento_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="funcao_proposta" type="VARCHAR" length="255"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<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="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="observacoes" type="VARCHAR" length="65535"/>
		<db-attribute name="observacoes_gestao" type="VARCHAR" length="65535"/>
		<db-attribute name="perfil" type="INTEGER" length="10"/>
		<db-attribute name="sexo" type="CHAR" length="1"/>
	</db-entity>
	<db-entity name="trabalhadores_consultas" schema="public">
		<db-attribute name="data" 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="prestador_id" type="INTEGER" length="10"/>
		<db-attribute name="processo_id" type="INTEGER" length="10"/>
		<db-attribute name="trabalhador_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_consultas_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_consultas_datas" schema="public">
		<db-attribute name="data" 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="prestador_id" type="INTEGER" length="10"/>
		<db-attribute name="trabalhadores_consultas_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_consultas_datas_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_consultas_datas_emails" schema="public">
		<db-attribute name="body" type="VARCHAR" length="32768"/>
		<db-attribute name="data" type="DATE" length="13"/>
		<db-attribute name="destination" type="VARCHAR" length="512"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="subject" type="VARCHAR" length="512"/>
		<db-attribute name="trabalhadores_consultas_datas_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_consultas_datas_emails_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_consultas_datas_observacoes" schema="public">
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="observacao" type="VARCHAR" length="4096"/>
		<db-attribute name="trabalhadores_consultas_datas_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_consultas_datas_observacoes_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_ecd" schema="public">
		<db-attribute name="analisador_id" type="INTEGER" length="10"/>
		<db-attribute name="data_envio" type="DATE" length="13"/>
		<db-attribute name="data_recepcao" type="DATE" length="13"/>
		<db-attribute name="ecd_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="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="trabalhadores_ecds_datas_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"/>
		<db-attribute name="estado" type="INTEGER" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="processo_id" type="INTEGER" length="10"/>
		<db-attribute name="trabalhador_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_ecds_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_ecds_analise" schema="public">
		<db-attribute name="data" type="DATE" isMandatory="true" length="13"/>
		<db-attribute name="grupo_ecds_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="prestador_id" type="INTEGER" isMandatory="true" length="10"/>
	</db-entity>
	<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_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="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="prestador_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_ecds_datas_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_ecds_datas_emails" schema="public">
		<db-attribute name="body" type="VARCHAR" length="32768"/>
		<db-attribute name="data" type="DATE" length="13"/>
		<db-attribute name="destination" type="VARCHAR" length="512"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="subject" type="VARCHAR" length="512"/>
		<db-attribute name="trabalhadores_ecds_datas_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_ecds_datas_emails_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_ecds_datas_observacoes" schema="public">
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="observacao" type="VARCHAR" length="4096"/>
		<db-attribute name="trabalhadores_ecds_datas_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_ecds_datas_observacoes_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_fichas_aptidao" schema="public">
		<db-attribute name="exame_id" type="INTEGER" length="10"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="processo_id" type="INTEGER" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_fichas_aptidao_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<db-entity name="trabalhadores_processo" schema="public">
		<db-attribute name="activo" type="CHAR" length="1"/>
		<db-attribute name="data_fim" type="DATE" length="13"/>
		<db-attribute name="data_inicio" type="DATE" length="13"/>
		<db-attribute name="estado" type="CHAR" isMandatory="true" length="1"/>
		<db-attribute name="id" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="10"/>
		<db-attribute name="motivo" type="INTEGER" length="10"/>
		<db-attribute name="sub_motivo" type="INTEGER" length="10"/>
		<db-attribute name="trabalhador_id" type="INTEGER" isMandatory="true" length="10"/>
		<db-key-generator>
			<db-generator-type>ORACLE</db-generator-type>
			<db-generator-name>trabalhadores_processo_id_seq</db-generator-name>
			<db-key-cache-size>1</db-key-cache-size>
		</db-key-generator>
	</db-entity>
	<obj-entity name="Avisos" className="siprp.database.cayenne.objects.Avisos" lock-type="optimistic" 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" 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="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" lock-type="optimistic" 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="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="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"/>
		<obj-attribute name="actividade" type="java.lang.String" db-attribute-path="actividade"/>
		<obj-attribute name="actualizacao" type="java.util.Date" db-attribute-path="actualizacao"/>
		<obj-attribute name="bConsultas" type="java.lang.String" db-attribute-path="b_consultas"/>
		<obj-attribute name="bExames" type="java.lang.String" db-attribute-path="b_exames"/>
		<obj-attribute name="cae" type="java.lang.String" db-attribute-path="cae"/>
		<obj-attribute name="codigo1" type="java.lang.String" db-attribute-path="codigo_1"/>
		<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="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"/>
		<obj-attribute name="dataCancelamento" type="java.util.Date" db-attribute-path="data_cancelamento"/>
		<obj-attribute name="dataEnvioContrato" type="java.util.Date" db-attribute-path="data_envio_contrato"/>
		<obj-attribute name="dataEnvioIdict" type="java.util.Date" db-attribute-path="data_envio_idict"/>
		<obj-attribute name="dataProposta" type="java.util.Date" db-attribute-path="data_proposta"/>
		<obj-attribute name="dataRecepcaoContrato" type="java.util.Date" db-attribute-path="data_recepcao_contrato"/>
		<obj-attribute name="dataRelatorioAnual" type="java.util.Date" db-attribute-path="data_relatorio_anual"/>
		<obj-attribute name="designacaoSocial" type="java.lang.String" db-attribute-path="designacao_social"/>
		<obj-attribute name="designacaoSocialPlain" type="java.lang.String" db-attribute-path="designacao_social_plain"/>
		<obj-attribute name="distrito" type="java.lang.String" db-attribute-path="distrito"/>
		<obj-attribute name="duracao" type="java.lang.Integer" db-attribute-path="duracao"/>
		<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="inicioContrato" type="java.util.Date" db-attribute-path="inicio_contrato"/>
		<obj-attribute name="localidade" type="java.lang.String" db-attribute-path="localidade"/>
		<obj-attribute name="morada" type="java.lang.String" db-attribute-path="morada"/>
		<obj-attribute name="numeroTrabalhadores" type="java.lang.Integer" db-attribute-path="numero_trabalhadores"/>
		<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"/>
		<obj-attribute name="servicoSaudeDesignacao" type="java.lang.String" db-attribute-path="servico_saude_designacao"/>
		<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" lock-type="optimistic" 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" lock-type="optimistic" 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="contactoBackup" 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"/>
		<obj-attribute name="localidade" type="java.lang.String" db-attribute-path="localidade"/>
		<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="Etiquetas" className="siprp.database.cayenne.objects.Etiquetas" lock-type="optimistic" 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"/>
		<obj-attribute name="margemCima" type="java.lang.Float" db-attribute-path="margem_cima"/>
		<obj-attribute name="margemEsquerda" type="java.lang.Float" db-attribute-path="margem_esquerda"/>
		<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" lock-type="optimistic" 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"/>
		<obj-attribute name="outraFuncao2" type="java.lang.String" db-attribute-path="outra_funcao_2"/>
		<obj-attribute name="outraFuncao3" type="java.lang.String" db-attribute-path="outra_funcao_3"/>
		<obj-attribute name="outraFuncao4" type="java.lang.String" db-attribute-path="outra_funcao_4"/>
		<obj-attribute name="outrasRecomendacoes" type="java.lang.String" db-attribute-path="outras_recomendacoes"/>
		<obj-attribute name="outroTipo" type="java.lang.String" db-attribute-path="outro_tipo"/>
		<obj-attribute name="pdf" type="byte[]" db-attribute-path="pdf"/>
		<obj-attribute name="proximoExame" type="java.util.Date" db-attribute-path="proximo_exame"/>
		<obj-attribute name="resultado" type="java.lang.Integer" db-attribute-path="resultado"/>
		<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" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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="HsArea" className="siprp.database.cayenne.objects.HsArea" dbEntityName="hs_area" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
		<obj-attribute name="empresaId" type="java.lang.Integer" db-attribute-path="empresa_id"/>
	</obj-entity>
	<obj-entity name="HsEmail" className="siprp.database.cayenne.objects.HsEmail" dbEntityName="hs_email" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="email" type="java.lang.String" db-attribute-path="email"/>
	</obj-entity>
	<obj-entity name="HsEmailEmpresa" className="siprp.database.cayenne.objects.HsEmailEmpresa" dbEntityName="hs_email_empresa" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsEmailEstabelecimento" className="siprp.database.cayenne.objects.HsEmailEstabelecimento" dbEntityName="hs_email_estabelecimento" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsEquipamento" className="siprp.database.cayenne.objects.HsEquipamento" dbEntityName="hs_equipamento" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="marca" type="java.lang.String" db-attribute-path="marca"/>
		<obj-attribute name="modelo" type="java.lang.String" db-attribute-path="modelo"/>
		<obj-attribute name="tipo" type="java.lang.String" db-attribute-path="tipo"/>
	</obj-entity>
	<obj-entity name="HsLegislacao" className="siprp.database.cayenne.objects.HsLegislacao" dbEntityName="hs_legislacao" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsLegislacaoCategoria" className="siprp.database.cayenne.objects.HsLegislacaoCategoria" dbEntityName="hs_legislacao_categoria" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsLegislacaoEmpresa" className="siprp.database.cayenne.objects.HsLegislacaoEmpresa" dbEntityName="hs_legislacao_empresa" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsLegislacaoEstabelecimento" className="siprp.database.cayenne.objects.HsLegislacaoEstabelecimento" dbEntityName="hs_legislacao_estabelecimento" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsMedida" className="siprp.database.cayenne.objects.HsMedida" dbEntityName="hs_medida" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
		<obj-attribute name="requesitosLegais" type="java.lang.String" db-attribute-path="requesitos_legais"/>
	</obj-entity>
	<obj-entity name="HsNormalizacao" className="siprp.database.cayenne.objects.HsNormalizacao" dbEntityName="hs_normalizacao" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="codigo" type="java.lang.String" db-attribute-path="codigo"/>
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="descricao" type="java.lang.String" db-attribute-path="descricao"/>
		<obj-attribute name="portuguesa" type="java.lang.Boolean" db-attribute-path="portuguesa"/>
	</obj-entity>
	<obj-entity name="HsNormalizacaoEmpresa" className="siprp.database.cayenne.objects.HsNormalizacaoEmpresa" dbEntityName="hs_normalizacao_empresa" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsNormalizacaoEstabelecimento" className="siprp.database.cayenne.objects.HsNormalizacaoEstabelecimento" dbEntityName="hs_normalizacao_estabelecimento" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsPosto" className="siprp.database.cayenne.objects.HsPosto" dbEntityName="hs_posto" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsPostoEstabelecimento" className="siprp.database.cayenne.objects.HsPostoEstabelecimento" dbEntityName="hs_posto_estabelecimento" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsPostoMedida" className="siprp.database.cayenne.objects.HsPostoMedida" dbEntityName="hs_posto_medida" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsPostoRisco" className="siprp.database.cayenne.objects.HsPostoRisco" dbEntityName="hs_posto_risco" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="isPlanoActuacao" type="java.lang.String" db-attribute-path="is_plano_actuacao"/>
		<obj-attribute name="probabilidade" type="java.lang.Integer" db-attribute-path="probabilidade"/>
		<obj-attribute name="severidade" type="java.lang.Integer" db-attribute-path="severidade"/>
		<obj-attribute name="valorQualitativo" type="java.lang.Integer" db-attribute-path="valor_qualitativo"/>
	</obj-entity>
	<obj-entity name="HsRelatorio" className="siprp.database.cayenne.objects.HsRelatorio" dbEntityName="hs_relatorio" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="acompanhante1" type="java.lang.String" db-attribute-path="acompanhante1"/>
		<obj-attribute name="acompanhante2" type="java.lang.String" db-attribute-path="acompanhante2"/>
		<obj-attribute name="acompanhante3" type="java.lang.String" db-attribute-path="acompanhante3"/>
		<obj-attribute name="avaliacaoInicial" type="java.lang.Boolean" db-attribute-path="avaliacao_inicial"/>
		<obj-attribute name="data" type="java.util.Date" db-attribute-path="data"/>
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="funcaoAcompanhante1" type="java.lang.String" db-attribute-path="funcao_acompanhante1"/>
		<obj-attribute name="funcaoAcompanhante2" type="java.lang.String" db-attribute-path="funcao_acompanhante2"/>
		<obj-attribute name="funcaoAcompanhante3" type="java.lang.String" db-attribute-path="funcao_acompanhante3"/>
		<obj-attribute name="id" type="java.lang.Integer" db-attribute-path="id"/>
		<obj-attribute name="isSubmetido" type="java.util.Date" db-attribute-path="is_submetido"/>
	</obj-entity>
	<obj-entity name="HsRelatorioArea" className="siprp.database.cayenne.objects.HsRelatorioArea" dbEntityName="hs_relatorio_area" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsRelatorioEquipamento" className="siprp.database.cayenne.objects.HsRelatorioEquipamento" dbEntityName="hs_relatorio_equipamento" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsRelatorioLegislacao" className="siprp.database.cayenne.objects.HsRelatorioLegislacao" dbEntityName="hs_relatorio_legislacao" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsRelatorioMedida" className="siprp.database.cayenne.objects.HsRelatorioMedida" dbEntityName="hs_relatorio_medida" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
		<obj-attribute name="requesitosLegais" type="java.lang.String" db-attribute-path="requesitos_legais"/>
	</obj-entity>
	<obj-entity name="HsRelatorioNormalizacao" className="siprp.database.cayenne.objects.HsRelatorioNormalizacao" dbEntityName="hs_relatorio_normalizacao" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsRelatorioPosto" className="siprp.database.cayenne.objects.HsRelatorioPosto" dbEntityName="hs_relatorio_posto" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsRelatorioPostoMedida" className="siprp.database.cayenne.objects.HsRelatorioPostoMedida" dbEntityName="hs_relatorio_posto_medida" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="isPlanoActuacao" type="java.lang.Boolean" db-attribute-path="is_plano_actuacao"/>
	</obj-entity>
	<obj-entity name="HsRelatorioPostoRisco" className="siprp.database.cayenne.objects.HsRelatorioPostoRisco" dbEntityName="hs_relatorio_posto_risco" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="probabilidade" type="java.lang.Integer" db-attribute-path="probabilidade"/>
		<obj-attribute name="severidade" type="java.lang.Integer" db-attribute-path="severidade"/>
	</obj-entity>
	<obj-entity name="HsRelatorioRisco" className="siprp.database.cayenne.objects.HsRelatorioRisco" dbEntityName="hs_relatorio_risco" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsRelatorioRiscoValorQualitativo" className="siprp.database.cayenne.objects.HsRelatorioRiscoValorQualitativo" dbEntityName="hs_relatorio_risco_valor_qualitativo" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsRisco" className="siprp.database.cayenne.objects.HsRisco" dbEntityName="hs_risco" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="HsRiscoEmpresa" className="siprp.database.cayenne.objects.HsRiscoEmpresa" dbEntityName="hs_risco_empresa" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsRiscoMedida" className="siprp.database.cayenne.objects.HsRiscoMedida" dbEntityName="hs_risco_medida" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="HsRiscoTema" className="siprp.database.cayenne.objects.HsRiscoTema" dbEntityName="hs_risco_tema" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="deletedDate" type="java.util.Date" db-attribute-path="deleted_date"/>
		<obj-attribute name="description" type="java.lang.String" db-attribute-path="description"/>
	</obj-entity>
	<obj-entity name="Image" className="siprp.database.cayenne.objects.Image" dbEntityName="image" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="imageData" type="byte[]" db-attribute-path="image_data"/>
		<obj-attribute name="name" type="java.lang.String" db-attribute-path="name"/>
	</obj-entity>
	<obj-entity name="Lembretes" className="siprp.database.cayenne.objects.Lembretes" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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="estabelecimentoID" type="java.lang.Integer" db-attribute-path="estabelecimento_id"/>
		<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" lock-type="optimistic" dbEntityName="marcacoes_grupos_realizados" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="MarcacoesTecnicosHst" className="siprp.database.cayenne.objects.MarcacoesTecnicosHst" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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-attribute name="observacoes" type="java.lang.String" db-attribute-path="observacoes"/>
	</obj-entity>
	<obj-entity name="PrestadoresGruposProtocolo" className="siprp.database.cayenne.objects.PrestadoresGruposProtocolo" lock-type="optimistic" dbEntityName="prestadores_grupos_protocolo" superClassName="siprp.database.cayenne.objects.BaseObject">
	</obj-entity>
	<obj-entity name="PrtElementosProtocolo" className="siprp.database.cayenne.objects.PrtElementosProtocolo" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" dbEntityName="trabalhadores" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="actualizacao" type="java.util.Date" db-attribute-path="actualizacao"/>
		<obj-attribute name="bi" type="java.lang.String" db-attribute-path="bi"/>
		<obj-attribute name="categoria" type="java.lang.String" db-attribute-path="categoria"/>
		<obj-attribute name="dataAdmissao" type="java.util.Date" db-attribute-path="data_admissao"/>
		<obj-attribute name="dataAdmissaoFuncao" type="java.util.Date" db-attribute-path="data_admissao_funcao"/>
		<obj-attribute name="dataDemissao" type="java.util.Date" db-attribute-path="data_demissao"/>
		<obj-attribute name="dataNascimento" type="java.util.Date" db-attribute-path="data_nascimento"/>
		<obj-attribute name="funcaoProposta" type="java.lang.String" db-attribute-path="funcao_proposta"/>
		<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="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="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="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"/>
		<obj-attribute name="sexo" type="java.lang.String" db-attribute-path="sexo"/>
	</obj-entity>
	<obj-entity name="TrabalhadoresConsultas" className="siprp.database.cayenne.objects.TrabalhadoresConsultas" lock-type="optimistic" dbEntityName="trabalhadores_consultas" 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="TrabalhadoresConsultasDatas" className="siprp.database.cayenne.objects.TrabalhadoresConsultasDatas" lock-type="optimistic" dbEntityName="trabalhadores_consultas_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="TrabalhadoresConsultasDatasEmails" className="siprp.database.cayenne.objects.TrabalhadoresConsultasDatasEmails" lock-type="optimistic" dbEntityName="trabalhadores_consultas_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="TrabalhadoresConsultasDatasObservacoes" className="siprp.database.cayenne.objects.TrabalhadoresConsultasDatasObservacoes" lock-type="optimistic" dbEntityName="trabalhadores_consultas_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="TrabalhadoresEcd" className="siprp.database.cayenne.objects.TrabalhadoresEcd" lock-type="optimistic" dbEntityName="trabalhadores_ecd" superClassName="siprp.database.cayenne.objects.BaseObject">
		<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="enviado" type="java.lang.Character" db-attribute-path="enviado"/>
		<obj-attribute name="estado" type="java.lang.Integer" db-attribute-path="estado"/>
	</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-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="TrabalhadoresEcdsAnalise" className="siprp.database.cayenne.objects.TrabalhadoresEcdsAnalise" dbEntityName="trabalhadores_ecds_analise" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="data" type="java.util.Date" db-attribute-path="data"/>
	</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-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="id" type="java.lang.Integer" db-attribute-path="id"/>
	</obj-entity>
	<obj-entity name="TrabalhadoresEcdsDatasEmails" className="siprp.database.cayenne.objects.TrabalhadoresEcdsDatasEmails" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" 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" lock-type="optimistic" dbEntityName="trabalhadores_processo" superClassName="siprp.database.cayenne.objects.BaseObject">
		<obj-attribute name="activo" type="java.lang.String" db-attribute-path="activo"/>
		<obj-attribute name="dataFim" type="java.util.Date" db-attribute-path="data_fim"/>
		<obj-attribute name="dataInicio" type="java.util.Date" db-attribute-path="data_inicio"/>
		<obj-attribute name="estado" type="java.lang.String" 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="subMotivo" type="java.lang.Integer" db-attribute-path="sub_motivo"/>
	</obj-entity>
	<db-relationship name="toEmpresas" 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>
	<db-relationship name="empresasArray" source="contactos" target="empresas" toMany="true">
		<db-attribute-pair source="id" target="contacto_1"/>
	</db-relationship>
	<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>
	<db-relationship name="trabalhadoresEcdArray" source="ecd_oficial" target="trabalhadores_ecd" toMany="true">
		<db-attribute-pair source="id" target="ecd_oficial_id"/>
	</db-relationship>
	<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="avisosArray" source="empresas" target="avisos" 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="hsAreaArray" 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="hsLegislacaoEmpresaArray" 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="hsRiscoEmpresaArray" 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="marcacoesEmpresaArray" 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="toContactos" source="empresas" target="contactos" toMany="false">
		<db-attribute-pair source="contacto_1" target="id"/>
	</db-relationship>
	<db-relationship name="toContactos1" source="empresas" target="contactos" toMany="false">
		<db-attribute-pair source="contacto_2" target="id"/>
	</db-relationship>
	<db-relationship name="toImage" source="empresas" target="image" toMany="false">
		<db-attribute-pair source="empresa_logo_id" target="id"/>
	</db-relationship>
	<db-relationship name="avisosArray" source="estabelecimentos" target="avisos" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="emailPlanoDeActuacaoArray" source="estabelecimentos" target="email_plano_de_actuacao" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="historicoEstabelecimentoArray" source="estabelecimentos" target="historico_estabelecimento" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="hsEmailEstabelecimento" source="estabelecimentos" target="hs_email_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="hsLegislacaoEstabelecimentoArray" source="estabelecimentos" target="hs_legislacao_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="hsNormalizacaoEstabelecimentoArray" source="estabelecimentos" target="hs_normalizacao_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="hsPostoEstabelecimentoArray" source="estabelecimentos" target="hs_posto_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="lembretesArray" source="estabelecimentos" target="lembretes" toMany="true">
		<db-attribute-pair source="id" target="estabelecimento_id"/>
	</db-relationship>
	<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>
	<db-relationship name="toMedicos" source="exames" target="medicos" toMany="false">
		<db-attribute-pair source="medico_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresFichasAptidaoArray" source="exames" target="trabalhadores_fichas_aptidao" toMany="true">
		<db-attribute-pair source="id" target="exame_id"/>
	</db-relationship>
	<db-relationship name="toTiposExamesComp" source="exames_perfis" target="tipos_exames_comp" toMany="false">
		<db-attribute-pair source="tipo" target="id"/>
	</db-relationship>
	<db-relationship name="toEstabelecimentos" source="historico_estabelecimento" target="estabelecimentos" toMany="false">
		<db-attribute-pair source="estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsPostoArray" source="hs_area" target="hs_posto" toMany="true">
		<db-attribute-pair source="id" target="area_id"/>
	</db-relationship>
	<db-relationship name="toEmpresas" 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>
	<db-relationship name="hsEmailEstabelecimentoArray" source="hs_email" target="hs_email_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="email_id"/>
	</db-relationship>
	<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="toHsEmail" source="hs_email_empresa" target="hs_email" toMany="false">
		<db-attribute-pair source="email_id" target="id"/>
	</db-relationship>
	<db-relationship name="toEstabelecimento" source="hs_email_estabelecimento" target="estabelecimentos" toMany="false">
		<db-attribute-pair source="estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsEmail" source="hs_email_estabelecimento" target="hs_email" toMany="false">
		<db-attribute-pair source="email_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioEquipamentoArray" source="hs_equipamento" target="hs_relatorio_equipamento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="hs_equipamento"/>
	</db-relationship>
	<db-relationship name="hsLegislacaoEmpresaArray" source="hs_legislacao" target="hs_legislacao_empresa" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="legislacao_id"/>
	</db-relationship>
	<db-relationship name="hsLegislacaoEstabelecimentoArray" source="hs_legislacao" target="hs_legislacao_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="legislacao_id"/>
	</db-relationship>
	<db-relationship name="toHsLegislacaoCategoria" source="hs_legislacao" target="hs_legislacao_categoria" toMany="false">
		<db-attribute-pair source="categoria_id" target="id"/>
	</db-relationship>
	<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="toHsEmpresa" source="hs_legislacao_empresa" target="empresas" toMany="false">
		<db-attribute-pair source="empresa_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsLegislacao" source="hs_legislacao_empresa" target="hs_legislacao" toMany="false">
		<db-attribute-pair source="legislacao_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsEstabelecimento" source="hs_legislacao_estabelecimento" target="estabelecimentos" toMany="false">
		<db-attribute-pair source="estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsLegislacao" source="hs_legislacao_estabelecimento" target="hs_legislacao" toMany="false">
		<db-attribute-pair source="legislacao_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsPostoMedidaArray" source="hs_medida" target="hs_posto_medida" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="medida_id"/>
	</db-relationship>
	<db-relationship name="hsRiscoMedidaArray" source="hs_medida" target="hs_risco_medida" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="medida_id"/>
	</db-relationship>
	<db-relationship name="hsNormalizacaoEmpresaArray" source="hs_normalizacao" target="hs_normalizacao_empresa" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="normalizacao_id"/>
	</db-relationship>
	<db-relationship name="hsNormalizacaoEstabelecimentoArray" source="hs_normalizacao" target="hs_normalizacao_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="normalizacao_id"/>
	</db-relationship>
	<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="toHsNormalizacao" source="hs_normalizacao_empresa" target="hs_normalizacao" toMany="false">
		<db-attribute-pair source="normalizacao_id" target="id"/>
	</db-relationship>
	<db-relationship name="toEstabelecimento" source="hs_normalizacao_estabelecimento" target="estabelecimentos" toMany="false">
		<db-attribute-pair source="estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsNormalizacao" source="hs_normalizacao_estabelecimento" target="hs_normalizacao" toMany="false">
		<db-attribute-pair source="normalizacao_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsPostoEstabelecimentoArray" source="hs_posto" target="hs_posto_estabelecimento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="posto_id"/>
	</db-relationship>
	<db-relationship name="hsPostoMedidaArray" source="hs_posto" target="hs_posto_medida" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="posto_id"/>
	</db-relationship>
	<db-relationship name="hsPostoRiscoArray" source="hs_posto" target="hs_posto_risco" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="posto_id"/>
	</db-relationship>
	<db-relationship name="toHsArea" source="hs_posto" target="hs_area" toMany="false">
		<db-attribute-pair source="area_id" target="id"/>
	</db-relationship>
	<db-relationship name="toEstabelecimentos" source="hs_posto_estabelecimento" target="estabelecimentos" toMany="false">
		<db-attribute-pair source="estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsPosto" source="hs_posto_estabelecimento" target="hs_posto" toMany="false">
		<db-attribute-pair source="posto_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsMedida" source="hs_posto_medida" target="hs_medida" toMany="false">
		<db-attribute-pair source="medida_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsPosto" source="hs_posto_medida" target="hs_posto" toMany="false">
		<db-attribute-pair source="posto_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsPosto" source="hs_posto_risco" target="hs_posto" toMany="false">
		<db-attribute-pair source="posto_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioRiscoValorQualitativo" source="hs_posto_risco" target="hs_relatorio_risco_valor_qualitativo" toMany="false">
		<db-attribute-pair source="valor_qualitativo" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioRiscoValorQualitativo1" source="hs_posto_risco" target="hs_relatorio_risco_valor_qualitativo" toMany="false">
		<db-attribute-pair source="valor_qualitativo" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRisco" source="hs_posto_risco" target="hs_risco" toMany="false">
		<db-attribute-pair source="risco_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioArea" source="hs_relatorio" target="hs_relatorio_area" toMany="true">
		<db-attribute-pair source="id" target="relatorio_id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioEquipamentoArray" source="hs_relatorio" target="hs_relatorio_equipamento" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="hs_relatorio_id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioLegislacaoArray" source="hs_relatorio" target="hs_relatorio_legislacao" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="hs_relatorio_id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioNormalizacaoArray" source="hs_relatorio" target="hs_relatorio_normalizacao" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="hs_relatorio_id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioRiscoArray" source="hs_relatorio" target="hs_relatorio_risco" toMany="true">
		<db-attribute-pair source="id" target="relatorio_id"/>
	</db-relationship>
	<db-relationship name="toHsMarcacoesEstabelecimento" source="hs_relatorio" target="marcacoes_estabelecimento" toMany="false">
		<db-attribute-pair source="marcacao_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioPostoArray" source="hs_relatorio_area" target="hs_relatorio_posto" toMany="true">
		<db-attribute-pair source="id" target="area_id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorio" source="hs_relatorio_area" target="hs_relatorio" toMany="false">
		<db-attribute-pair source="relatorio_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsEquipamento" source="hs_relatorio_equipamento" target="hs_equipamento" toMany="false">
		<db-attribute-pair source="hs_equipamento" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorio" source="hs_relatorio_equipamento" target="hs_relatorio" toMany="false">
		<db-attribute-pair source="hs_relatorio_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorio" source="hs_relatorio_legislacao" target="hs_relatorio" toMany="false">
		<db-attribute-pair source="hs_relatorio_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioPostoMedidaArray" source="hs_relatorio_medida" target="hs_relatorio_posto_medida" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="medida_id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioRisco" source="hs_relatorio_medida" target="hs_relatorio_risco" toMany="false">
		<db-attribute-pair source="risco_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorio" source="hs_relatorio_normalizacao" target="hs_relatorio" toMany="false">
		<db-attribute-pair source="hs_relatorio_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioPostoMedidaArray" source="hs_relatorio_posto" target="hs_relatorio_posto_medida" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="posto_id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioPostoRiscoArray" source="hs_relatorio_posto" target="hs_relatorio_posto_risco" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="posto_id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioArea" source="hs_relatorio_posto" target="hs_relatorio_area" toMany="false">
		<db-attribute-pair source="area_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioMedida" source="hs_relatorio_posto_medida" target="hs_relatorio_medida" toMany="false">
		<db-attribute-pair source="medida_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioPosto" source="hs_relatorio_posto_medida" target="hs_relatorio_posto" toMany="false">
		<db-attribute-pair source="posto_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioPosto" source="hs_relatorio_posto_risco" target="hs_relatorio_posto" toMany="false">
		<db-attribute-pair source="posto_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioRisco" source="hs_relatorio_posto_risco" target="hs_relatorio_risco" toMany="false">
		<db-attribute-pair source="risco_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorioRiscoValorQualitativo" source="hs_relatorio_posto_risco" target="hs_relatorio_risco_valor_qualitativo" toMany="false">
		<db-attribute-pair source="valor_qualitativo_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioMedidaArray" source="hs_relatorio_risco" target="hs_relatorio_medida" toMany="true">
		<db-attribute-pair source="id" target="risco_id"/>
	</db-relationship>
	<db-relationship name="hsRelatorioPostoRiscoArray" source="hs_relatorio_risco" target="hs_relatorio_posto_risco" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="risco_id"/>
	</db-relationship>
	<db-relationship name="toHsRelatorio" source="hs_relatorio_risco" target="hs_relatorio" toMany="false">
		<db-attribute-pair source="relatorio_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsPostoRiscoArray" source="hs_relatorio_risco_valor_qualitativo" target="hs_posto_risco" toMany="true">
		<db-attribute-pair source="id" target="valor_qualitativo"/>
	</db-relationship>
	<db-relationship name="hsPostoRiscoArray1" source="hs_relatorio_risco_valor_qualitativo" target="hs_posto_risco" toMany="true">
		<db-attribute-pair source="id" target="valor_qualitativo"/>
	</db-relationship>
	<db-relationship name="hsRelatorioPostoRiscoArray" source="hs_relatorio_risco_valor_qualitativo" target="hs_relatorio_posto_risco" toMany="true">
		<db-attribute-pair source="id" target="valor_qualitativo_id"/>
	</db-relationship>
	<db-relationship name="hsPostoRiscoArray" source="hs_risco" target="hs_posto_risco" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="risco_id"/>
	</db-relationship>
	<db-relationship name="hsRiscoEmpresaArray" source="hs_risco" target="hs_risco_empresa" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="risco_id"/>
	</db-relationship>
	<db-relationship name="hsRiscoMedidaArray" source="hs_risco" target="hs_risco_medida" toDependentPK="true" toMany="true">
		<db-attribute-pair source="id" target="risco_id"/>
	</db-relationship>
	<db-relationship name="toHsRiscoTema" source="hs_risco" target="hs_risco_tema" toMany="false">
		<db-attribute-pair source="tema_id" target="id"/>
	</db-relationship>
	<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="toHsRisco" source="hs_risco_empresa" target="hs_risco" toMany="false">
		<db-attribute-pair source="risco_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsMedida" source="hs_risco_medida" target="hs_medida" toMany="false">
		<db-attribute-pair source="medida_id" target="id"/>
	</db-relationship>
	<db-relationship name="toHsRisco" source="hs_risco_medida" target="hs_risco" toMany="false">
		<db-attribute-pair source="risco_id" target="id"/>
	</db-relationship>
	<db-relationship name="hsRiscoArray" source="hs_risco_tema" target="hs_risco" toMany="true">
		<db-attribute-pair source="id" target="tema_id"/>
	</db-relationship>
	<db-relationship name="empresasArray" source="image" target="empresas" toMany="true">
		<db-attribute-pair source="id" target="empresa_logo_id"/>
	</db-relationship>
	<db-relationship name="toEmpresas" 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>
	<db-relationship name="toLembretesTipos" source="lembretes" target="lembretes_tipos" toMany="false">
		<db-attribute-pair source="tipo_id" target="id"/>
	</db-relationship>
	<db-relationship name="toMarcacoesEstabelecimento" source="lembretes" target="marcacoes_estabelecimento" toMany="false">
		<db-attribute-pair source="marcacao_estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="toMarcacoesTrabalhador" source="lembretes" target="marcacoes_trabalhador" toMany="false">
		<db-attribute-pair source="marcacao_trabalhador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadores" source="lembretes" target="trabalhadores" toMany="false">
		<db-attribute-pair source="trabalhador_id" target="id"/>
	</db-relationship>
	<db-relationship name="lembretesArray" source="lembretes_tipos" target="lembretes" toMany="true">
		<db-attribute-pair source="id" target="tipo_id"/>
	</db-relationship>
	<db-relationship name="toEmpresas" 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>
	<db-relationship name="lembretesArray" source="marcacoes_estabelecimento" target="lembretes" toMany="true">
		<db-attribute-pair source="id" target="marcacao_estabelecimento_id"/>
	</db-relationship>
	<db-relationship name="toEstabelecimentos" source="marcacoes_estabelecimento" target="estabelecimentos" toMany="false">
		<db-attribute-pair source="estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="toMarcacoesTecnicosHst" source="marcacoes_estabelecimento" target="marcacoes_tecnicos_hst" toMany="false">
		<db-attribute-pair source="tecnico_hst" target="id"/>
	</db-relationship>
	<db-relationship name="toMarcacoesTrabalhador" source="marcacoes_grupos_realizados" target="marcacoes_trabalhador" toMany="false">
		<db-attribute-pair source="marcacao_trabalhador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toMarcacoesTrabalhadorEstados" source="marcacoes_grupos_realizados" target="marcacoes_trabalhador_estados" toMany="false">
		<db-attribute-pair source="marcacoes_trabalhador_estado_id" target="id"/>
	</db-relationship>
	<db-relationship name="toPrtGruposProtocolo" source="marcacoes_grupos_realizados" target="prt_grupos_protocolo" toMany="false">
		<db-attribute-pair source="grupo_protocolo_id" target="id"/>
	</db-relationship>
	<db-relationship name="marcacoesEstabelecimentoArray" source="marcacoes_tecnicos_hst" target="marcacoes_estabelecimento" toMany="true">
		<db-attribute-pair source="id" target="tecnico_hst"/>
	</db-relationship>
	<db-relationship name="lembretesArray" source="marcacoes_trabalhador" target="lembretes" toMany="true">
		<db-attribute-pair source="id" target="marcacao_trabalhador_id"/>
	</db-relationship>
	<db-relationship name="marcacoesGruposRealizadosArray" source="marcacoes_trabalhador" target="marcacoes_grupos_realizados" toMany="true">
		<db-attribute-pair source="id" target="marcacao_trabalhador_id"/>
	</db-relationship>
	<db-relationship name="marcacoesTrabalhadorEstadosArray" source="marcacoes_trabalhador" target="marcacoes_trabalhador_estados" toMany="true">
		<db-attribute-pair source="id" target="marcacao_id"/>
	</db-relationship>
	<db-relationship name="toPrestadores" source="marcacoes_trabalhador" target="prestadores" toMany="false">
		<db-attribute-pair source="prestador_id" target="id"/>
	</db-relationship>
	<db-relationship name="marcacoesGruposRealizadosArray" source="marcacoes_trabalhador_estados" target="marcacoes_grupos_realizados" toMany="true">
		<db-attribute-pair source="id" target="marcacoes_trabalhador_estado_id"/>
	</db-relationship>
	<db-relationship name="toMarcacoesTrabalhador" source="marcacoes_trabalhador_estados" target="marcacoes_trabalhador" toMany="false">
		<db-attribute-pair source="marcacao_id" target="id"/>
	</db-relationship>
	<db-relationship name="toPrestadores" source="marcacoes_trabalhador_estados" target="prestadores" toMany="false">
		<db-attribute-pair source="prestador_id" target="id"/>
	</db-relationship>
	<db-relationship name="estabelecimentosArray" source="medicos" target="estabelecimentos" toMany="true">
		<db-attribute-pair source="id" target="medico_id"/>
	</db-relationship>
	<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>
	<db-relationship name="marcacoesTrabalhadorEstadosArray" source="prestadores" target="marcacoes_trabalhador_estados" toMany="true">
		<db-attribute-pair source="id" target="prestador_id"/>
	</db-relationship>
	<db-relationship name="prestadoresGruposProtocoloArray" source="prestadores" target="prestadores_grupos_protocolo" toMany="true">
		<db-attribute-pair source="id" target="prestador_id"/>
	</db-relationship>
	<db-relationship name="prtGruposProtocoloArray" source="prestadores" target="prt_grupos_protocolo" toMany="true">
		<db-attribute-pair source="id" target="analisador_id"/>
	</db-relationship>
	<db-relationship name="toContactos" source="prestadores" target="contactos" toMany="false">
		<db-attribute-pair source="contacto_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresConsultasArray" source="prestadores" target="trabalhadores_consultas" toMany="true">
		<db-attribute-pair source="id" target="prestador_id"/>
	</db-relationship>
	<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="analisador_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdsAnaliseArray" source="prestadores" target="trabalhadores_ecds_analise" toMany="true">
		<db-attribute-pair source="id" target="prestador_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdsDatasArray1" source="prestadores" target="trabalhadores_ecds_datas" toMany="true">
		<db-attribute-pair source="id" target="analisador_id"/>
	</db-relationship>
	<db-relationship name="toPrestadores" source="prestadores_grupos_protocolo" target="prestadores" toMany="false">
		<db-attribute-pair source="prestador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toPrtGruposProtocolo" source="prestadores_grupos_protocolo" target="prt_grupos_protocolo" toMany="false">
		<db-attribute-pair source="grupo_protocolo_id" target="id"/>
	</db-relationship>
	<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="toPrtTiposElementosProtocolo" source="prt_elementos_protocolo" target="prt_tipos_elementos_protocolo" toMany="false">
		<db-attribute-pair source="tipo_elemento_protocolo_id" target="id"/>
	</db-relationship>
	<db-relationship name="marcacoesGruposRealizadosArray" source="prt_grupos_protocolo" target="marcacoes_grupos_realizados" toMany="true">
		<db-attribute-pair source="id" target="grupo_protocolo_id"/>
	</db-relationship>
	<db-relationship name="prestadoresGruposProtocoloArray" source="prt_grupos_protocolo" target="prestadores_grupos_protocolo" toMany="true">
		<db-attribute-pair source="id" target="grupo_protocolo_id"/>
	</db-relationship>
	<db-relationship name="prtTiposElementosProtocoloArray" source="prt_grupos_protocolo" target="prt_tipos_elementos_protocolo" toMany="true">
		<db-attribute-pair source="id" target="grupo_protocolo_id"/>
	</db-relationship>
	<db-relationship name="toAnalisador" source="prt_grupos_protocolo" target="prestadores" toMany="false">
		<db-attribute-pair source="analisador_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdsAnaliseArray" source="prt_grupos_protocolo" target="trabalhadores_ecds_analise" toMany="true">
		<db-attribute-pair source="id" target="grupo_ecds_id"/>
	</db-relationship>
	<db-relationship name="prtElementosProtocoloArray" source="prt_tipos_elementos_protocolo" target="prt_elementos_protocolo" toMany="true">
		<db-attribute-pair source="id" target="tipo_elemento_protocolo_id"/>
	</db-relationship>
	<db-relationship name="toPrtGruposProtocolo" source="prt_tipos_elementos_protocolo" target="prt_grupos_protocolo" toMany="false">
		<db-attribute-pair source="grupo_protocolo_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdArray" source="prt_tipos_elementos_protocolo" target="trabalhadores_ecd" toMany="true">
		<db-attribute-pair source="id" target="ecd_id"/>
	</db-relationship>
	<db-relationship name="examesPerfisArray" source="tipos_exames_comp" target="exames_perfis" toMany="true">
		<db-attribute-pair source="id" target="tipo"/>
	</db-relationship>
	<db-relationship name="lembretesArray" source="trabalhadores" target="lembretes" toMany="true">
		<db-attribute-pair source="id" target="trabalhador_id"/>
	</db-relationship>
	<db-relationship name="toEstabelecimentos" source="trabalhadores" target="estabelecimentos" toMany="false">
		<db-attribute-pair source="estabelecimento_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresConsultasArray" source="trabalhadores" target="trabalhadores_consultas" toMany="true">
		<db-attribute-pair source="id" target="trabalhador_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdsArray" source="trabalhadores" target="trabalhadores_ecds" toMany="true">
		<db-attribute-pair source="id" target="trabalhador_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresProcessoArray" source="trabalhadores" target="trabalhadores_processo" toMany="true">
		<db-attribute-pair source="id" target="trabalhador_id"/>
	</db-relationship>
	<db-relationship name="toPrestadores" source="trabalhadores_consultas" target="prestadores" toMany="false">
		<db-attribute-pair source="prestador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadores" source="trabalhadores_consultas" target="trabalhadores" toMany="false">
		<db-attribute-pair source="trabalhador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresProcesso" source="trabalhadores_consultas" target="trabalhadores_processo" toMany="false">
		<db-attribute-pair source="processo_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresConsultasDatasArray" source="trabalhadores_consultas" target="trabalhadores_consultas_datas" toMany="true">
		<db-attribute-pair source="id" target="trabalhadores_consultas_id"/>
	</db-relationship>
	<db-relationship name="toPrestadores" source="trabalhadores_consultas_datas" target="prestadores" toMany="false">
		<db-attribute-pair source="prestador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresConsultas" source="trabalhadores_consultas_datas" target="trabalhadores_consultas" toMany="false">
		<db-attribute-pair source="trabalhadores_consultas_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresConsultasDatasEmailsArray" source="trabalhadores_consultas_datas" target="trabalhadores_consultas_datas_emails" toMany="true">
		<db-attribute-pair source="id" target="trabalhadores_consultas_datas_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresConsultasDatasObservacoesArray" source="trabalhadores_consultas_datas" target="trabalhadores_consultas_datas_observacoes" toMany="true">
		<db-attribute-pair source="id" target="trabalhadores_consultas_datas_id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresConsultasDatas" source="trabalhadores_consultas_datas_emails" target="trabalhadores_consultas_datas" toMany="false">
		<db-attribute-pair source="trabalhadores_consultas_datas_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresConsultasDatas" source="trabalhadores_consultas_datas_observacoes" target="trabalhadores_consultas_datas" toMany="false">
		<db-attribute-pair source="trabalhadores_consultas_datas_id" target="id"/>
	</db-relationship>
	<db-relationship name="toAnalisador" source="trabalhadores_ecd" target="prestadores" toMany="false">
		<db-attribute-pair source="analisador_id" target="id"/>
	</db-relationship>
	<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="toPrtTiposElementosProtocolo" source="trabalhadores_ecd" target="prt_tipos_elementos_protocolo" toMany="false">
		<db-attribute-pair source="ecd_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>
	<db-relationship name="toTrabalhadores" source="trabalhadores_ecds" target="trabalhadores" toMany="false">
		<db-attribute-pair source="trabalhador_id" target="id"/>
	</db-relationship>
	<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="trabalhadoresEcdsDatasArray" source="trabalhadores_ecds" target="trabalhadores_ecds_datas" toMany="true">
		<db-attribute-pair source="id" target="trabalhadores_ecds_id"/>
	</db-relationship>
	<db-relationship name="toPrestadores" source="trabalhadores_ecds_analise" target="prestadores" toMany="false">
		<db-attribute-pair source="prestador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toPrtGruposProtocolo" source="trabalhadores_ecds_analise" target="prt_grupos_protocolo" toMany="false">
		<db-attribute-pair source="grupo_ecds_id" target="id"/>
	</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-attribute-pair source="prestador_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresEcds" source="trabalhadores_ecds_datas" target="trabalhadores_ecds" toMany="false">
		<db-attribute-pair source="trabalhadores_ecds_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdArray" source="trabalhadores_ecds_datas" target="trabalhadores_ecd" toMany="true">
		<db-attribute-pair source="id" target="trabalhadores_ecds_datas_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdsDatasEmailsArray" source="trabalhadores_ecds_datas" target="trabalhadores_ecds_datas_emails" toMany="true">
		<db-attribute-pair source="id" target="trabalhadores_ecds_datas_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdsDatasObservacoesArray" source="trabalhadores_ecds_datas" target="trabalhadores_ecds_datas_observacoes" toMany="true">
		<db-attribute-pair source="id" target="trabalhadores_ecds_datas_id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresEcdsDatas" source="trabalhadores_ecds_datas_emails" target="trabalhadores_ecds_datas" toMany="false">
		<db-attribute-pair source="trabalhadores_ecds_datas_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresEcdsDatas" source="trabalhadores_ecds_datas_observacoes" target="trabalhadores_ecds_datas" toMany="false">
		<db-attribute-pair source="trabalhadores_ecds_datas_id" target="id"/>
	</db-relationship>
	<db-relationship name="toExames" source="trabalhadores_fichas_aptidao" target="exames" toMany="false">
		<db-attribute-pair source="exame_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadoresProcesso" source="trabalhadores_fichas_aptidao" target="trabalhadores_processo" toMany="false">
		<db-attribute-pair source="processo_id" target="id"/>
	</db-relationship>
	<db-relationship name="toTrabalhadores" source="trabalhadores_processo" target="trabalhadores" toMany="false">
		<db-attribute-pair source="trabalhador_id" target="id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresConsultasArray" source="trabalhadores_processo" target="trabalhadores_consultas" toMany="true">
		<db-attribute-pair source="id" target="processo_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresEcdsArray" source="trabalhadores_processo" target="trabalhadores_ecds" toMany="true">
		<db-attribute-pair source="id" target="processo_id"/>
	</db-relationship>
	<db-relationship name="trabalhadoresFichasAptidaoArray" source="trabalhadores_processo" target="trabalhadores_fichas_aptidao" toMany="true">
		<db-attribute-pair source="id" target="processo_id"/>
	</db-relationship>
	<obj-relationship name="toEmpresas" source="Avisos" target="Empresas" db-relationship-path="toEmpresas"/>
	<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="toEstabelecimentos" source="EmailPlanoDeActuacao" target="Estabelecimentos" deleteRule="Nullify" db-relationship-path="toEstabelecimentos"/>
	<obj-relationship name="avisosArray" source="Empresas" target="Avisos" db-relationship-path="avisosArray"/>
	<obj-relationship name="estabelecimentosArray" source="Empresas" target="Estabelecimentos" db-relationship-path="estabelecimentosArray"/>
	<obj-relationship name="hsAreaArray" source="Empresas" target="HsArea" db-relationship-path="hsAreaArray"/>
	<obj-relationship name="hsEmailEmpresa" source="Empresas" target="HsEmailEmpresa" db-relationship-path="hsEmailEmpresa"/>
	<obj-relationship name="hsLegislacaoEmpresaArray" source="Empresas" target="HsLegislacaoEmpresa" db-relationship-path="hsLegislacaoEmpresaArray"/>
	<obj-relationship name="hsNormalizacaoEmpresaArray" source="Empresas" target="HsNormalizacaoEmpresa" db-relationship-path="hsNormalizacaoEmpresaArray"/>
	<obj-relationship name="hsRiscoEmpresaArray" source="Empresas" target="HsRiscoEmpresa" db-relationship-path="hsRiscoEmpresaArray"/>
	<obj-relationship name="lembretesArray" source="Empresas" target="Lembretes" db-relationship-path="lembretesArray"/>
	<obj-relationship name="marcacoesEmpresaArray" source="Empresas" target="MarcacoesEmpresa" db-relationship-path="marcacoesEmpresaArray"/>
	<obj-relationship name="prtElementosProtocoloArray" source="Empresas" target="PrtElementosProtocolo" db-relationship-path="prtElementosProtocoloArray"/>
	<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"/>
	<obj-relationship name="avisosArray" source="Estabelecimentos" target="Avisos" db-relationship-path="avisosArray"/>
	<obj-relationship name="emailPlanoDeActuacaoArray" source="Estabelecimentos" target="EmailPlanoDeActuacao" db-relationship-path="emailPlanoDeActuacaoArray"/>
	<obj-relationship name="historicoEstabelecimentoArray" source="Estabelecimentos" target="HistoricoEstabelecimento" db-relationship-path="historicoEstabelecimentoArray"/>
	<obj-relationship name="hsEmailEstabelecimento" source="Estabelecimentos" target="HsEmailEstabelecimento" db-relationship-path="hsEmailEstabelecimento"/>
	<obj-relationship name="hsLegislacaoEstabelecimentoArray" source="Estabelecimentos" target="HsLegislacaoEstabelecimento" db-relationship-path="hsLegislacaoEstabelecimentoArray"/>
	<obj-relationship name="hsNormalizacaoEstabelecimentoArray" source="Estabelecimentos" target="HsNormalizacaoEstabelecimento" db-relationship-path="hsNormalizacaoEstabelecimentoArray"/>
	<obj-relationship name="hsPostoEstabelecimentoArray" source="Estabelecimentos" target="HsPostoEstabelecimento" db-relationship-path="hsPostoEstabelecimentoArray"/>
	<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"/>
	<obj-relationship name="toTiposExamesComp" source="ExamesPerfis" target="TiposExamesComp" db-relationship-path="toTiposExamesComp"/>
	<obj-relationship name="toEstabelecimentos" source="HistoricoEstabelecimento" target="Estabelecimentos" db-relationship-path="toEstabelecimentos"/>
	<obj-relationship name="hsPostoArray" source="HsArea" target="HsPosto" deleteRule="Cascade" db-relationship-path="hsPostoArray"/>
	<obj-relationship name="toEmpresas" source="HsArea" target="Empresas" deleteRule="Nullify" db-relationship-path="toEmpresas"/>
	<obj-relationship name="hsEmailEmpresaArray" source="HsEmail" target="HsEmailEmpresa" deleteRule="Cascade" db-relationship-path="hsEmailEmpresaArray"/>
	<obj-relationship name="hsEmailEstabelecimentoArray" source="HsEmail" target="HsEmailEstabelecimento" deleteRule="Cascade" db-relationship-path="hsEmailEstabelecimentoArray"/>
	<obj-relationship name="toEmpresa" source="HsEmailEmpresa" target="Empresas" deleteRule="Nullify" db-relationship-path="toEmpresa"/>
	<obj-relationship name="toHsEmail" source="HsEmailEmpresa" target="HsEmail" deleteRule="Nullify" db-relationship-path="toHsEmail"/>
	<obj-relationship name="toEstabelecimento" source="HsEmailEstabelecimento" target="Estabelecimentos" deleteRule="Nullify" db-relationship-path="toEstabelecimento"/>
	<obj-relationship name="toHsEmail" source="HsEmailEstabelecimento" target="HsEmail" deleteRule="Nullify" db-relationship-path="toHsEmail"/>
	<obj-relationship name="hsRelatorioEquipamentoArray" source="HsEquipamento" target="HsRelatorioEquipamento" db-relationship-path="hsRelatorioEquipamentoArray"/>
	<obj-relationship name="hsLegislacaoEmpresaArray" source="HsLegislacao" target="HsLegislacaoEmpresa" deleteRule="Cascade" db-relationship-path="hsLegislacaoEmpresaArray"/>
	<obj-relationship name="hsLegislacaoEstabelecimentoArray" source="HsLegislacao" target="HsLegislacaoEstabelecimento" deleteRule="Cascade" db-relationship-path="hsLegislacaoEstabelecimentoArray"/>
	<obj-relationship name="toHsLegislacaoCategoria" source="HsLegislacao" target="HsLegislacaoCategoria" deleteRule="Nullify" db-relationship-path="toHsLegislacaoCategoria"/>
	<obj-relationship name="hsLegislacaoArray" source="HsLegislacaoCategoria" target="HsLegislacao" deleteRule="Nullify" db-relationship-path="hsLegislacaoArray"/>
	<obj-relationship name="toHsEmpresa" source="HsLegislacaoEmpresa" target="Empresas" deleteRule="Nullify" db-relationship-path="toHsEmpresa"/>
	<obj-relationship name="toHsLegislacao" source="HsLegislacaoEmpresa" target="HsLegislacao" deleteRule="Nullify" db-relationship-path="toHsLegislacao"/>
	<obj-relationship name="toHsEstabelecimento" source="HsLegislacaoEstabelecimento" target="Estabelecimentos" deleteRule="Nullify" db-relationship-path="toHsEstabelecimento"/>
	<obj-relationship name="toHsLegislacao" source="HsLegislacaoEstabelecimento" target="HsLegislacao" deleteRule="Nullify" db-relationship-path="toHsLegislacao"/>
	<obj-relationship name="hsPostoMedidaArray" source="HsMedida" target="HsPostoMedida" deleteRule="Cascade" db-relationship-path="hsPostoMedidaArray"/>
	<obj-relationship name="hsRiscoMedidaArray" source="HsMedida" target="HsRiscoMedida" deleteRule="Cascade" db-relationship-path="hsRiscoMedidaArray"/>
	<obj-relationship name="hsNormalizacaoEmpresaArray" source="HsNormalizacao" target="HsNormalizacaoEmpresa" db-relationship-path="hsNormalizacaoEmpresaArray"/>
	<obj-relationship name="hsNormalizacaoEstabelecimentoArray" source="HsNormalizacao" target="HsNormalizacaoEstabelecimento" db-relationship-path="hsNormalizacaoEstabelecimentoArray"/>
	<obj-relationship name="toEmpresa" source="HsNormalizacaoEmpresa" target="Empresas" deleteRule="Nullify" db-relationship-path="toEmpresa"/>
	<obj-relationship name="toHsNormalizacao" source="HsNormalizacaoEmpresa" target="HsNormalizacao" deleteRule="Nullify" db-relationship-path="toHsNormalizacao"/>
	<obj-relationship name="toEstabelecimento" source="HsNormalizacaoEstabelecimento" target="Estabelecimentos" deleteRule="Nullify" db-relationship-path="toEstabelecimento"/>
	<obj-relationship name="toHsNormalizacao" source="HsNormalizacaoEstabelecimento" target="HsNormalizacao" deleteRule="Nullify" db-relationship-path="toHsNormalizacao"/>
	<obj-relationship name="hsPostoEstabelecimentoArray" source="HsPosto" target="HsPostoEstabelecimento" deleteRule="Cascade" db-relationship-path="hsPostoEstabelecimentoArray"/>
	<obj-relationship name="hsPostoMedidaArray" source="HsPosto" target="HsPostoMedida" deleteRule="Cascade" db-relationship-path="hsPostoMedidaArray"/>
	<obj-relationship name="hsPostoRiscoArray" source="HsPosto" target="HsPostoRisco" deleteRule="Cascade" db-relationship-path="hsPostoRiscoArray"/>
	<obj-relationship name="toHsArea" source="HsPosto" target="HsArea" deleteRule="Nullify" db-relationship-path="toHsArea"/>
	<obj-relationship name="toEstabelecimentos" source="HsPostoEstabelecimento" target="Estabelecimentos" deleteRule="Nullify" db-relationship-path="toEstabelecimentos"/>
	<obj-relationship name="toHsPosto" source="HsPostoEstabelecimento" target="HsPosto" deleteRule="Nullify" db-relationship-path="toHsPosto"/>
	<obj-relationship name="toHsMedida" source="HsPostoMedida" target="HsMedida" deleteRule="Nullify" db-relationship-path="toHsMedida"/>
	<obj-relationship name="toHsPosto" source="HsPostoMedida" target="HsPosto" deleteRule="Nullify" db-relationship-path="toHsPosto"/>
	<obj-relationship name="toHsPosto" source="HsPostoRisco" target="HsPosto" deleteRule="Nullify" db-relationship-path="toHsPosto"/>
	<obj-relationship name="toHsRelatorioRiscoValorQualitativo" source="HsPostoRisco" target="HsRelatorioRiscoValorQualitativo" deleteRule="Nullify" db-relationship-path="toHsRelatorioRiscoValorQualitativo"/>
	<obj-relationship name="toHsRisco" source="HsPostoRisco" target="HsRisco" deleteRule="Nullify" db-relationship-path="toHsRisco"/>
	<obj-relationship name="hsRelatorioArea" source="HsRelatorio" target="HsRelatorioArea" deleteRule="Cascade" db-relationship-path="hsRelatorioArea"/>
	<obj-relationship name="hsRelatorioEquipamentoArray" source="HsRelatorio" target="HsRelatorioEquipamento" db-relationship-path="hsRelatorioEquipamentoArray"/>
	<obj-relationship name="hsRelatorioLegislacaoArray" source="HsRelatorio" target="HsRelatorioLegislacao" db-relationship-path="hsRelatorioLegislacaoArray"/>
	<obj-relationship name="hsRelatorioNormalizacaoArray" source="HsRelatorio" target="HsRelatorioNormalizacao" db-relationship-path="hsRelatorioNormalizacaoArray"/>
	<obj-relationship name="hsRelatorioRiscoArray" source="HsRelatorio" target="HsRelatorioRisco" deleteRule="Cascade" db-relationship-path="hsRelatorioRiscoArray"/>
	<obj-relationship name="toHsMarcacoesEstabelecimento" source="HsRelatorio" target="MarcacoesEstabelecimento" db-relationship-path="toHsMarcacoesEstabelecimento"/>
	<obj-relationship name="hsRelatorioPostoArray" source="HsRelatorioArea" target="HsRelatorioPosto" deleteRule="Cascade" db-relationship-path="hsRelatorioPostoArray"/>
	<obj-relationship name="toHsRelatorio" source="HsRelatorioArea" target="HsRelatorio" deleteRule="Nullify" db-relationship-path="toHsRelatorio"/>
	<obj-relationship name="toHsEquipamento" source="HsRelatorioEquipamento" target="HsEquipamento" db-relationship-path="toHsEquipamento"/>
	<obj-relationship name="toHsRelatorio" source="HsRelatorioEquipamento" target="HsRelatorio" db-relationship-path="toHsRelatorio"/>
	<obj-relationship name="toHsRelatorio" source="HsRelatorioLegislacao" target="HsRelatorio" db-relationship-path="toHsRelatorio"/>
	<obj-relationship name="hsRelatorioPostoMedidaArray" source="HsRelatorioMedida" target="HsRelatorioPostoMedida" deleteRule="Cascade" db-relationship-path="hsRelatorioPostoMedidaArray"/>
	<obj-relationship name="toHsRelatorioRisco" source="HsRelatorioMedida" target="HsRelatorioRisco" deleteRule="Nullify" db-relationship-path="toHsRelatorioRisco"/>
	<obj-relationship name="toHsRelatorio" source="HsRelatorioNormalizacao" target="HsRelatorio" db-relationship-path="toHsRelatorio"/>
	<obj-relationship name="hsRelatorioPostoMedidaArray" source="HsRelatorioPosto" target="HsRelatorioPostoMedida" deleteRule="Cascade" db-relationship-path="hsRelatorioPostoMedidaArray"/>
	<obj-relationship name="hsRelatorioPostoRiscoArray" source="HsRelatorioPosto" target="HsRelatorioPostoRisco" deleteRule="Cascade" db-relationship-path="hsRelatorioPostoRiscoArray"/>
	<obj-relationship name="toHsRelatorioArea" source="HsRelatorioPosto" target="HsRelatorioArea" deleteRule="Nullify" db-relationship-path="toHsRelatorioArea"/>
	<obj-relationship name="toHsRelatorioMedida" source="HsRelatorioPostoMedida" target="HsRelatorioMedida" deleteRule="Nullify" db-relationship-path="toHsRelatorioMedida"/>
	<obj-relationship name="toHsRelatorioPosto" source="HsRelatorioPostoMedida" target="HsRelatorioPosto" deleteRule="Nullify" db-relationship-path="toHsRelatorioPosto"/>
	<obj-relationship name="toHsRelatorioPosto" source="HsRelatorioPostoRisco" target="HsRelatorioPosto" deleteRule="Cascade" db-relationship-path="toHsRelatorioPosto"/>
	<obj-relationship name="toHsRelatorioRisco" source="HsRelatorioPostoRisco" target="HsRelatorioRisco" deleteRule="Cascade" db-relationship-path="toHsRelatorioRisco"/>
	<obj-relationship name="toHsRelatorioRiscoValorQualitativo" source="HsRelatorioPostoRisco" target="HsRelatorioRiscoValorQualitativo" deleteRule="Nullify" db-relationship-path="toHsRelatorioRiscoValorQualitativo"/>
	<obj-relationship name="hsRelatorioMedidaArray" source="HsRelatorioRisco" target="HsRelatorioMedida" deleteRule="Cascade" db-relationship-path="hsRelatorioMedidaArray"/>
	<obj-relationship name="hsRelatorioPostoRiscoArray" source="HsRelatorioRisco" target="HsRelatorioPostoRisco" deleteRule="Cascade" db-relationship-path="hsRelatorioPostoRiscoArray"/>
	<obj-relationship name="toHsRelatorio" source="HsRelatorioRisco" target="HsRelatorio" deleteRule="Nullify" db-relationship-path="toHsRelatorio"/>
	<obj-relationship name="hsPostoRiscoArray" source="HsRelatorioRiscoValorQualitativo" target="HsPostoRisco" db-relationship-path="hsPostoRiscoArray"/>
	<obj-relationship name="hsRelatorioPostoRiscoArray" source="HsRelatorioRiscoValorQualitativo" target="HsRelatorioPostoRisco" db-relationship-path="hsRelatorioPostoRiscoArray"/>
	<obj-relationship name="hsPostoRiscoArray" source="HsRisco" target="HsPostoRisco" deleteRule="Cascade" db-relationship-path="hsPostoRiscoArray"/>
	<obj-relationship name="hsRiscoEmpresaArray" source="HsRisco" target="HsRiscoEmpresa" deleteRule="Cascade" db-relationship-path="hsRiscoEmpresaArray"/>
	<obj-relationship name="hsRiscoMedidaArray" source="HsRisco" target="HsRiscoMedida" deleteRule="Cascade" db-relationship-path="hsRiscoMedidaArray"/>
	<obj-relationship name="toHsRiscoTema" source="HsRisco" target="HsRiscoTema" deleteRule="Nullify" db-relationship-path="toHsRiscoTema"/>
	<obj-relationship name="toEmpresa" source="HsRiscoEmpresa" target="Empresas" deleteRule="Nullify" db-relationship-path="toEmpresa"/>
	<obj-relationship name="toHsRisco" source="HsRiscoEmpresa" target="HsRisco" deleteRule="Nullify" db-relationship-path="toHsRisco"/>
	<obj-relationship name="toHsMedida" source="HsRiscoMedida" target="HsMedida" deleteRule="Nullify" db-relationship-path="toHsMedida"/>
	<obj-relationship name="toHsRisco" source="HsRiscoMedida" target="HsRisco" deleteRule="Nullify" db-relationship-path="toHsRisco"/>
	<obj-relationship name="hsRiscoArray" source="HsRiscoTema" target="HsRisco" deleteRule="Nullify" db-relationship-path="hsRiscoArray"/>
	<obj-relationship name="empresasArray" source="Image" target="Empresas" db-relationship-path="empresasArray"/>
	<obj-relationship name="toEmpresas" source="Lembretes" target="Empresas" db-relationship-path="toEmpresas"/>
	<obj-relationship name="toEstabelecimentos" source="Lembretes" target="Estabelecimentos" db-relationship-path="toEstabelecimentos"/>
	<obj-relationship name="toLembretesTipos" source="Lembretes" target="LembretesTipos" db-relationship-path="toLembretesTipos"/>
	<obj-relationship name="toMarcacoesEstabelecimento" source="Lembretes" target="MarcacoesEstabelecimento" db-relationship-path="toMarcacoesEstabelecimento"/>
	<obj-relationship name="toMarcacoesTrabalhador" source="Lembretes" target="MarcacoesTrabalhador" db-relationship-path="toMarcacoesTrabalhador"/>
	<obj-relationship name="toTrabalhadores" source="Lembretes" target="Trabalhadores" db-relationship-path="toTrabalhadores"/>
	<obj-relationship name="lembretesArray" source="LembretesTipos" target="Lembretes" db-relationship-path="lembretesArray"/>
	<obj-relationship name="toEmpresas" source="MarcacoesEmpresa" target="Empresas" db-relationship-path="toEmpresas"/>
	<obj-relationship name="hsRelatorioArray" source="MarcacoesEstabelecimento" target="HsRelatorio" db-relationship-path="hsRelatorioArray"/>
	<obj-relationship name="lembretesArray" source="MarcacoesEstabelecimento" target="Lembretes" db-relationship-path="lembretesArray"/>
	<obj-relationship name="toEstabelecimentos" source="MarcacoesEstabelecimento" target="Estabelecimentos" db-relationship-path="toEstabelecimentos"/>
	<obj-relationship name="toMarcacoesTecnicosHst" source="MarcacoesEstabelecimento" target="MarcacoesTecnicosHst" db-relationship-path="toMarcacoesTecnicosHst"/>
	<obj-relationship name="toMarcacoesTrabalhador" source="MarcacoesGruposRealizados" target="MarcacoesTrabalhador" db-relationship-path="toMarcacoesTrabalhador"/>
	<obj-relationship name="toMarcacoesTrabalhadorEstados" source="MarcacoesGruposRealizados" target="MarcacoesTrabalhadorEstados" db-relationship-path="toMarcacoesTrabalhadorEstados"/>
	<obj-relationship name="toPrtGruposProtocolo" source="MarcacoesGruposRealizados" target="PrtGruposProtocolo" db-relationship-path="toPrtGruposProtocolo"/>
	<obj-relationship name="marcacoesEstabelecimentoArray" source="MarcacoesTecnicosHst" target="MarcacoesEstabelecimento" db-relationship-path="marcacoesEstabelecimentoArray"/>
	<obj-relationship name="lembretesArray" source="MarcacoesTrabalhador" target="Lembretes" db-relationship-path="lembretesArray"/>
	<obj-relationship name="marcacoesGruposRealizadosArray" source="MarcacoesTrabalhador" target="MarcacoesGruposRealizados" db-relationship-path="marcacoesGruposRealizadosArray"/>
	<obj-relationship name="marcacoesTrabalhadorEstadosArray" source="MarcacoesTrabalhador" target="MarcacoesTrabalhadorEstados" db-relationship-path="marcacoesTrabalhadorEstadosArray"/>
	<obj-relationship name="toPrestadores" source="MarcacoesTrabalhador" target="Prestadores" db-relationship-path="toPrestadores"/>
	<obj-relationship name="marcacoesGruposRealizadosArray" source="MarcacoesTrabalhadorEstados" target="MarcacoesGruposRealizados" db-relationship-path="marcacoesGruposRealizadosArray"/>
	<obj-relationship name="toMarcacoesTrabalhador" source="MarcacoesTrabalhadorEstados" target="MarcacoesTrabalhador" db-relationship-path="toMarcacoesTrabalhador"/>
	<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="prtGruposProtocoloArray" source="Prestadores" target="PrtGruposProtocolo" db-relationship-path="prtGruposProtocoloArray"/>
	<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="trabalhadoresEcdsDatasArray1"/>
	<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="toEmpresas" source="PrtElementosProtocolo" target="Empresas" db-relationship-path="toEmpresas"/>
	<obj-relationship name="toPrtTiposElementosProtocolo" source="PrtElementosProtocolo" target="PrtTiposElementosProtocolo" db-relationship-path="toPrtTiposElementosProtocolo"/>
	<obj-relationship name="marcacoesGruposRealizadosArray" source="PrtGruposProtocolo" target="MarcacoesGruposRealizados" db-relationship-path="marcacoesGruposRealizadosArray"/>
	<obj-relationship name="prestadoresGruposProtocoloArray" source="PrtGruposProtocolo" target="PrestadoresGruposProtocolo" db-relationship-path="prestadoresGruposProtocoloArray"/>
	<obj-relationship name="prtTiposElementosProtocoloArray" source="PrtGruposProtocolo" target="PrtTiposElementosProtocolo" db-relationship-path="prtTiposElementosProtocoloArray"/>
	<obj-relationship name="toAnalisador" source="PrtGruposProtocolo" target="Prestadores" db-relationship-path="toAnalisador"/>
	<obj-relationship name="prtElementosProtocoloArray" source="PrtTiposElementosProtocolo" target="PrtElementosProtocolo" db-relationship-path="prtElementosProtocoloArray"/>
	<obj-relationship name="toPrtGruposProtocolo" source="PrtTiposElementosProtocolo" target="PrtGruposProtocolo" db-relationship-path="toPrtGruposProtocolo"/>
	<obj-relationship name="trabalhadoresEcdArray" source="PrtTiposElementosProtocolo" target="TrabalhadoresEcd" db-relationship-path="trabalhadoresEcdArray"/>
	<obj-relationship name="examesPerfisArray" source="TiposExamesComp" target="ExamesPerfis" db-relationship-path="examesPerfisArray"/>
	<obj-relationship name="lembretesArray" source="Trabalhadores" target="Lembretes" db-relationship-path="lembretesArray"/>
	<obj-relationship name="toEstabelecimentos" source="Trabalhadores" target="Estabelecimentos" db-relationship-path="toEstabelecimentos"/>
	<obj-relationship name="trabalhadoresConsultasArray" source="Trabalhadores" target="TrabalhadoresConsultas" db-relationship-path="trabalhadoresConsultasArray"/>
	<obj-relationship name="trabalhadoresEcdsArray" source="Trabalhadores" target="TrabalhadoresEcds" db-relationship-path="trabalhadoresEcdsArray"/>
	<obj-relationship name="trabalhadoresProcessoArray" source="Trabalhadores" target="TrabalhadoresProcesso" db-relationship-path="trabalhadoresProcessoArray"/>
	<obj-relationship name="toPrestadores" source="TrabalhadoresConsultas" target="Prestadores" db-relationship-path="toPrestadores"/>
	<obj-relationship name="toTrabalhadores" source="TrabalhadoresConsultas" target="Trabalhadores" db-relationship-path="toTrabalhadores"/>
	<obj-relationship name="toTrabalhadoresProcesso" source="TrabalhadoresConsultas" target="TrabalhadoresProcesso" db-relationship-path="toTrabalhadoresProcesso"/>
	<obj-relationship name="trabalhadoresConsultasDatasArray" source="TrabalhadoresConsultas" target="TrabalhadoresConsultasDatas" db-relationship-path="trabalhadoresConsultasDatasArray"/>
	<obj-relationship name="toPrestadores" source="TrabalhadoresConsultasDatas" target="Prestadores" db-relationship-path="toPrestadores"/>
	<obj-relationship name="toTrabalhadoresConsultas" source="TrabalhadoresConsultasDatas" target="TrabalhadoresConsultas" db-relationship-path="toTrabalhadoresConsultas"/>
	<obj-relationship name="trabalhadoresConsultasDatasEmailsArray" source="TrabalhadoresConsultasDatas" target="TrabalhadoresConsultasDatasEmails" db-relationship-path="trabalhadoresConsultasDatasEmailsArray"/>
	<obj-relationship name="trabalhadoresConsultasDatasObservacoesArray" source="TrabalhadoresConsultasDatas" target="TrabalhadoresConsultasDatasObservacoes" db-relationship-path="trabalhadoresConsultasDatasObservacoesArray"/>
	<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="toAnalisador" source="TrabalhadoresEcd" target="Prestadores" db-relationship-path="toAnalisador"/>
	<obj-relationship name="toEcdOficial" source="TrabalhadoresEcd" target="EcdOficial" db-relationship-path="toEcdOficial"/>
	<obj-relationship name="toPrtTiposElementosProtocolo" source="TrabalhadoresEcd" target="PrtTiposElementosProtocolo" db-relationship-path="toPrtTiposElementosProtocolo"/>
	<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="trabalhadoresEcdsDatasArray" source="TrabalhadoresEcds" target="TrabalhadoresEcdsDatas" db-relationship-path="trabalhadoresEcdsDatasArray"/>
	<obj-relationship name="toPrestadores" source="TrabalhadoresEcdsAnalise" target="Prestadores" db-relationship-path="toPrestadores"/>
	<obj-relationship name="toPrtGruposProtocolo" source="TrabalhadoresEcdsAnalise" target="PrtGruposProtocolo" db-relationship-path="toPrtGruposProtocolo"/>
	<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="toTrabalhadoresEcds" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcds" db-relationship-path="toTrabalhadoresEcds"/>
	<obj-relationship name="trabalhadoresEcdArray" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcd" db-relationship-path="trabalhadoresEcdArray"/>
	<obj-relationship name="trabalhadoresEcdsDatasEmailsArray" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcdsDatasEmails" db-relationship-path="trabalhadoresEcdsDatasEmailsArray"/>
	<obj-relationship name="trabalhadoresEcdsDatasObservacoesArray" source="TrabalhadoresEcdsDatas" target="TrabalhadoresEcdsDatasObservacoes" db-relationship-path="trabalhadoresEcdsDatasObservacoesArray"/>
	<obj-relationship name="toTrabalhadoresEcdsDatas" source="TrabalhadoresEcdsDatasEmails" target="TrabalhadoresEcdsDatas" db-relationship-path="toTrabalhadoresEcdsDatas"/>
	<obj-relationship name="toTrabalhadoresEcdsDatas" source="TrabalhadoresEcdsDatasObservacoes" target="TrabalhadoresEcdsDatas" db-relationship-path="toTrabalhadoresEcdsDatas"/>
	<obj-relationship name="toExames" source="TrabalhadoresFichasAptidao" target="Exames" db-relationship-path="toExames"/>
	<obj-relationship name="toTrabalhadoresProcesso" source="TrabalhadoresFichasAptidao" target="TrabalhadoresProcesso" db-relationship-path="toTrabalhadoresProcesso"/>
	<obj-relationship name="toTrabalhadores" source="TrabalhadoresProcesso" target="Trabalhadores" db-relationship-path="toTrabalhadores"/>
	<obj-relationship name="trabalhadoresConsultasArray" source="TrabalhadoresProcesso" target="TrabalhadoresConsultas" db-relationship-path="trabalhadoresConsultasArray"/>
	<obj-relationship name="trabalhadoresEcdsArray" source="TrabalhadoresProcesso" target="TrabalhadoresEcds" db-relationship-path="trabalhadoresEcdsArray"/>
	<obj-relationship name="trabalhadoresFichasAptidaoArray" source="TrabalhadoresProcesso" target="TrabalhadoresFichasAptidao" db-relationship-path="trabalhadoresFichasAptidaoArray"/>
</data-map>
