<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jdo PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 1.0//EN" "http://java.sun.com/dtd/jdo_1_0.dtd">
<jdo>
<package name="siprp.data">
<!-- CONTACTO -->
	<class name="Contacto" identity-type="application"  objectid-class="siprp.data.ContactoID">
	    <extension vendor-name="jpox" key="table-name" value="contactos"/>
	    <extension vendor-name="jpox" key="use-poid-generator" value="true"/>
	    <extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>
	    
	    <extension vendor-name="evolute" key="import" value="java.util.Date"/>
	    
		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="nome">
			<extension vendor-name="jpox" key="column-name" value="nome"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="cargo">
			<extension vendor-name="jpox" key="column-name" value="cargo"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="telefone">
			<extension vendor-name="jpox" key="column-name" value="telefone"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="telemovel">
			<extension vendor-name="jpox" key="column-name" value="telemovel"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="fax">
			<extension vendor-name="jpox" key="column-name" value="fax"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="email">
			<extension vendor-name="jpox" key="column-name" value="email"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class> 
<!-- EMPRESA -->
	<class name="Empresa" identity-type="application" objectid-class="siprp.data.EmpresaID">
	    <extension vendor-name="jpox" key="table-name" value="empresas"/>
	    <extension vendor-name="jpox" key="use-poid-generator" value="true"/>
	    <extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>
	    
	    <extension vendor-name="evolute" key="interface" value="DisableDeleteable"/>
            <extension vendor-name="evolute" key="interface" value="ActualizacaoSaveable"/>
	    <extension vendor-name="evolute" key="import" value="java.util.Date"/>
	    
		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>
			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="designacao_social" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="designacao_social"/>
			<extension vendor-name="jpox" key="length" value="255"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

                <field name="designacao_social_plain" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="designacao_social_plain"/>
			<extension vendor-name="jpox" key="length" value="255"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

		<field name="servico_saude_tipo">
			<extension vendor-name="jpox" key="column-name" value="servico_saude_tipo"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="servico_saude_designacao">
			<extension vendor-name="jpox" key="column-name" value="servico_saude_designacao"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="servico_higiene_tipo">
			<extension vendor-name="jpox" key="column-name" value="servico_higiene_tipo"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="servico_higiene_designacao">
			<extension vendor-name="jpox" key="column-name" value="servico_higiene_designacao"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

		<field name="morada">
			<extension vendor-name="jpox" key="column-name" value="morada"/>
			<extension vendor-name="jpox" key="length" value="255"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

		<field name="codigo_postal">
			<extension vendor-name="jpox" key="column-name" value="codigo_postal"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="localidade">
			<extension vendor-name="jpox" key="column-name" value="localidade"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="distrito">
			<extension vendor-name="jpox" key="column-name" value="distrito"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="concelho">
			<extension vendor-name="jpox" key="column-name" value="concelho"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="data_proposta">
			<extension vendor-name="jpox" key="column-name" value="data_proposta"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="data_aceitacao">
			<extension vendor-name="jpox" key="column-name" value="data_aceitacao"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
		
		<field name="inicio_contrato">
			<extension vendor-name="jpox" key="column-name" value="inicio_contrato"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
		
		<field name="duracao">
			<extension vendor-name="jpox" key="column-name" value="duracao"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		
		<field name="data_cancelamento">
			<extension vendor-name="jpox" key="column-name" value="data_cancelamento"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="perfil_1">
			<extension vendor-name="jpox" key="column-name" value="perfil_1"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="perfil_2">
			<extension vendor-name="jpox" key="column-name" value="perfil_2"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="data_envio_contrato">
			<extension vendor-name="jpox" key="column-name" value="data_envio_contrato"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="data_recepcao_contrato">
			<extension vendor-name="jpox" key="column-name" value="data_recepcao_contrato"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="data_envio_idict">
			<extension vendor-name="jpox" key="column-name" value="data_envio_idict"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="data_relatorio_anual">
			<extension vendor-name="jpox" key="column-name" value="data_relatorio_anual"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="codigo_1">
			<extension vendor-name="jpox" key="column-name" value="codigo_1"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="codigo_2">
			<extension vendor-name="jpox" key="column-name" value="codigo_2"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="codigo_3">
			<extension vendor-name="jpox" key="column-name" value="codigo_3"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="cae">
			<extension vendor-name="jpox" key="column-name" value="cae"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="actividade">
			<extension vendor-name="jpox" key="column-name" value="actividade"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="contribuinte">
			<extension vendor-name="jpox" key="column-name" value="contribuinte"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="seguranca_social">
			<extension vendor-name="jpox" key="column-name" value="seguranca_social"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="preco_higiene">
			<extension vendor-name="jpox" key="column-name" value="preco_higiene"/>

			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
	    
		<field name="preco_medicina">
			<extension vendor-name="jpox" key="column-name" value="preco_medicina"/>

			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
	    
		<field name="periodicidade">
			<extension vendor-name="jpox" key="column-name" value="periodicidade"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="contacto_1">
			<extension vendor-name="jpox" key="column-name" value="contacto_1"/>

			<extension vendor-name="evolute" key="java-type" value="Contacto"/>
		</field>
	    
		<field name="contacto_2">
			<extension vendor-name="jpox" key="column-name" value="contacto_2"/>

			<extension vendor-name="evolute" key="java-type" value="Contacto"/>
		</field>
	    
		<field name="servicos">
			<extension vendor-name="jpox" key="column-name" value="servicos"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="inactivo" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="inactivo"/>
<!--			<extension vendor-name="jpox" key="default-value" value="n"/> -->
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
                
                <field name="actualizacao" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="actualizacao"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
                <field name="a_consultas">
			<extension vendor-name="jpox" key="column-name" value="a_consultas"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
                <field name="a_exames">
			<extension vendor-name="jpox" key="column-name" value="a_exames"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
                <field name="b_consultas">
			<extension vendor-name="jpox" key="column-name" value="b_consultas"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
                <field name="b_exames">
			<extension vendor-name="jpox" key="column-name" value="b_exames"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class>
<!-- ESTABELECIMENTO -->
	<class name="Estabelecimento" identity-type="application" objectid-class="siprp.data.EstabelecimentoID">
		<extension vendor-name="jpox" key="table-name" value="estabelecimentos"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

                <extension vendor-name="evolute" key="import" value="java.util.Date"/>
		<extension vendor-name="evolute" key="interface" value="DisableDeleteable"/>
                <extension vendor-name="evolute" key="interface" value="ActualizacaoSaveable"/>
		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="nome" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="nome"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

                <field name="nome_plain" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="nome_plain"/>
			<extension vendor-name="jpox" key="length" value="255"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="morada">
			<extension vendor-name="jpox" key="column-name" value="morada"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="codigo_postal">
			<extension vendor-name="jpox" key="column-name" value="codigo_postal"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="localidade">
			<extension vendor-name="jpox" key="column-name" value="localidade"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="historico">
			<extension vendor-name="jpox" key="column-name" value="historico"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

		<field name="empresa">
			<extension vendor-name="jpox" key="column-name" value="empresa_id"/>

			<extension vendor-name="evolute" key="java-type" value="Empresa"/>
		</field>

		<field name="contacto">
			<extension vendor-name="jpox" key="column-name" value="contacto_id"/>

			<extension vendor-name="evolute" key="java-type" value="Contacto"/>
		</field>
	    
		<field name="inactivo" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="inactivo"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
                
        <field name="actualizacao" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="actualizacao"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
		<field name="prestador_consulta_id" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="prestador_consulta_id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		<field name="prestador_ecds_id" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="prestador_ecds_id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	</class>
<!-- TRABALHADOR -->
	<class name="Trabalhador" identity-type="application" objectid-class="siprp.data.TrabalhadorID"> 
		<extension vendor-name="jpox" key="table-name" value="trabalhadores"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="interface" value="DisableDeleteable"/>
		<extension vendor-name="evolute" key="import" value="java.util.Date"/>
                <extension vendor-name="evolute" key="interface" value="ActualizacaoSaveable"/>
		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="nome" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="nome"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

                <field name="nome_plain" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="nome_plain"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="sexo">
			<extension vendor-name="jpox" key="column-name" value="sexo"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="data_nascimento">
			<extension vendor-name="jpox" key="column-name" value="data_nascimento"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="nacionalidade">
			<extension vendor-name="jpox" key="column-name" value="nacionalidade"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="numero_mecanografico">
			<extension vendor-name="jpox" key="column-name" value="numero_mecanografico"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="data_admissao">
			<extension vendor-name="jpox" key="column-name" value="data_admissao"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="categoria">
			<extension vendor-name="jpox" key="column-name" value="categoria"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="local_trabalho">
			<extension vendor-name="jpox" key="column-name" value="local_trabalho"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="funcao_proposta">
			<extension vendor-name="jpox" key="column-name" value="funcao_proposta"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="data_admissao_funcao">
			<extension vendor-name="jpox" key="column-name" value="data_admissao_funcao"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="observacoes">
			<extension vendor-name="jpox" key="column-name" value="observacoes"/>
			<extension vendor-name="jpox" key="length" value="65365"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="estabelecimento">
			<extension vendor-name="jpox" key="column-name" value="estabelecimento_id"/>

			<extension vendor-name="evolute" key="java-type" value="Estabelecimento"/>
		</field>
	    
		<field name="data_demissao">
			<extension vendor-name="jpox" key="column-name" value="data_demissao"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="observacoes_gestao">
			<extension vendor-name="jpox" key="column-name" value="observacoes_gestao"/>
			<extension vendor-name="jpox" key="length" value="65365"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="perfil">
			<extension vendor-name="jpox" key="column-name" value="perfil"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		<field name="bi">
			<extension vendor-name="jpox" key="column-name" value="bi"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="inactivo" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="inactivo"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
                
                <field name="actualizacao" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="actualizacao"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="Date"/>
                </field>
	</class>
<!-- AVISO -->
	<class name="Aviso" identity-type="application" objectid-class="siprp.data.AvisoID">
		<extension vendor-name="jpox" key="table-name" value="avisos"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="interface" value="AvisoConstants"/>
		<extension vendor-name="evolute" key="import" value="java.util.Date"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="tipo" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="tipo"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="empresa">
			<extension vendor-name="jpox" key="column-name" value="empresa_id"/>

			<extension vendor-name="evolute" key="java-type" value="Empresa"/>
		</field>
	    
		<field name="estabelecimento">
			<extension vendor-name="jpox" key="column-name" value="estabelecimento_id"/>

			<extension vendor-name="evolute" key="java-type" value="Estabelecimento"/>
		</field>
	    
		<field name="trabalhador">
			<extension vendor-name="jpox" key="column-name" value="trabalhador_id"/>

			<extension vendor-name="evolute" key="java-type" value="Trabalhador"/>
		</field>
	    
		<field name="evento_id">
			<extension vendor-name="jpox" key="column-name" value="evento_id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="data_aviso">
			<extension vendor-name="jpox" key="column-name" value="data_aviso"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="data_evento">
			<extension vendor-name="jpox" key="column-name" value="data_evento"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="descricao">
			<extension vendor-name="jpox" key="column-name" value="descricao"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class>
<!-- MARCACOES_ESTABELECIMENTO -->
	<class name="MarcacaoEstabelecimento" identity-type="application" objectid-class="siprp.data.MarcacaoEstabelecimentoID">
		<extension vendor-name="jpox" key="table-name" value="marcacoes_estabelecimento"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="superclass" value="Marcacao"/>
		<extension vendor-name="evolute" key="import" value="java.util.Date"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="data">
			<extension vendor-name="jpox" key="column-name" value="data"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="realizada">
			<extension vendor-name="jpox" key="column-name" value="realizada"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

		<field name="estado">
			<extension vendor-name="jpox" key="column-name" value="estado"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		
		<field name="tecnico_hst">
			<extension vendor-name="jpox" key="column-name" value="tecnico_hst"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		
		<field name="data_email">
			<extension vendor-name="jpox" key="column-name" value="data_email"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="data_relatorio">
			<extension vendor-name="jpox" key="column-name" value="data_relatorio"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	
		<field name="estabelecimento">
			<extension vendor-name="jpox" key="column-name" value="estabelecimento_id"/>

			<extension vendor-name="evolute" key="java-type" value="Estabelecimento"/>
		</field>
		
		<field name="observacoes">
			<extension vendor-name="jpox" key="column-name" value="observacoes"/>
			<extension vendor-name="jpox" key="length" value="2048"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class>
<!-- MARCACOES_TRABALHADOR -->
	<class name="MarcacaoTrabalhador" identity-type="application" objectid-class="siprp.data.MarcacaoTrabalhadorID">
		<extension vendor-name="jpox" key="table-name" value="marcacoes_trabalhador"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="superclass" value="Marcacao"/>
		<extension vendor-name="evolute" key="interface" value="MarcacaoTrabalhadorConstants"/>
		<extension vendor-name="evolute" key="import" value="java.util.Date"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="data">
			<extension vendor-name="jpox" key="column-name" value="data"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="realizada">
			<extension vendor-name="jpox" key="column-name" value="realizada"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>

		<field name="estado">
			<extension vendor-name="jpox" key="column-name" value="estado"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		
		<field name="motivo">
			<extension vendor-name="jpox" key="column-name" value="motivo"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="data_email">
			<extension vendor-name="jpox" key="column-name" value="data_email"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="data_relatorio">
			<extension vendor-name="jpox" key="column-name" value="data_relatorio"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="tipo" null-value="exception" >
			<extension vendor-name="jpox" key="column-name" value="tipo"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="trabalhador">
			<extension vendor-name="jpox" key="column-name" value="trabalhador_id"/>

			<extension vendor-name="evolute" key="java-type" value="Trabalhador"/>
		</field>
		
		<field name="observacoes">
			<extension vendor-name="jpox" key="column-name" value="observacoes"/>
			<extension vendor-name="jpox" key="length" value="2048"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class>
<!-- MARCACOES_EMPRESA -->
	<class name="MarcacaoEmpresa" identity-type="application" objectid-class="siprp.data.MarcacaoEmpresaID">
		<extension vendor-name="jpox" key="table-name" value="marcacoes_empresa"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="superclass" value="Marcacao"/>
		<extension vendor-name="evolute" key="import" value="java.util.Date"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="data">
			<extension vendor-name="jpox" key="column-name" value="data"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="texto">
			<extension vendor-name="jpox" key="column-name" value="texto"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="realizada">
			<extension vendor-name="jpox" key="column-name" value="realizada"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="empresa">
			<extension vendor-name="jpox" key="column-name" value="empresa_id"/>

			<extension vendor-name="evolute" key="java-type" value="Empresa"/>
		</field>
	</class>
<!-- HISTORICO_ESTABELECIMENTO -->
	<class name="HistoricoEstabelecimento" identity-type="application" objectid-class="siprp.data.HistoricoEstabelecimentoID">
		<extension vendor-name="jpox" key="table-name" value="historico_estabelecimento"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="superclass" value="Historico"/>
		<extension vendor-name="evolute" key="import" value="java.util.Date"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="data">
			<extension vendor-name="jpox" key="column-name" value="data"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="texto">
			<extension vendor-name="jpox" key="column-name" value="texto"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="estabelecimento">
			<extension vendor-name="jpox" key="column-name" value="estabelecimento_id"/>

			<extension vendor-name="evolute" key="java-type" value="Estabelecimento"/>
		</field>
	</class>
<!-- MEDICOS -->
	<class name="Medico" identity-type="application" objectid-class="siprp.data.MedicoID">
		<extension vendor-name="jpox" key="table-name" value="medicos"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="interface" value="DisableDeleteable"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="nome">
			<extension vendor-name="jpox" key="column-name" value="nome"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="numero_cedula">
			<extension vendor-name="jpox" key="column-name" value="numero_cedula"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="inactivo" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="inactivo"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class>	
<!-- TECNICOS_HST -->
	<class name="TecnicoHST" identity-type="application" objectid-class="siprp.data.TecnicoHSTID">
		<extension vendor-name="jpox" key="table-name" value="marcacoes_tecnicos_hst"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="interface" value="DisableDeleteable"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="nome">
			<extension vendor-name="jpox" key="column-name" value="nome"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="nome_plain">
			<extension vendor-name="jpox" key="column-name" value="nome_plain"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	    
		<field name="iniciais">
			<extension vendor-name="jpox" key="column-name" value="iniciais"/>
			<extension vendor-name="jpox" key="length" value="10"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="identificador">
			<extension vendor-name="jpox" key="column-name" value="identificador"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
	    
		<field name="inactivo" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="inactivo"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class>	
	

<!-- EXAMES -->
	<class name="Exame" identity-type="application" objectid-class="siprp.data.ExameID">
		<extension vendor-name="jpox" key="table-name" value="exames"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<extension vendor-name="evolute" key="interface" value="DisableDeleteable"/>
		<extension vendor-name="evolute" key="import" value="java.util.Date"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    
		<field name="data">
			<extension vendor-name="jpox" key="column-name" value="data"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
	    
		<field name="tipo">
			<extension vendor-name="jpox" key="column-name" value="tipo"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		
	    <field name="ocasional">
			<extension vendor-name="jpox" key="column-name" value="ocasional"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		
		<field name="outro_tipo">
			<extension vendor-name="jpox" key="column-name" value="outro_tipo"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="resultado">
			<extension vendor-name="jpox" key="column-name" value="resultado"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		
		<field name="outra_funcao_1">
			<extension vendor-name="jpox" key="column-name" value="outra_funcao_1"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="outra_funcao_2">
			<extension vendor-name="jpox" key="column-name" value="outra_funcao_2"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="outra_funcao_3">

			<extension vendor-name="jpox" key="column-name" value="outra_funcao_3"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="outra_funcao_4">
			<extension vendor-name="jpox" key="column-name" value="outra_funcao_4"/>
			<extension vendor-name="jpox" key="length" value="255"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="proximo_exame">
			<extension vendor-name="jpox" key="column-name" value="proximo_exame"/>

			<extension vendor-name="evolute" key="java-type" value="Date"/>
		</field>
		
		<field name="outras_recomendacoes">
			<extension vendor-name="jpox" key="column-name" value="outras_recomendacoes"/>
			<extension vendor-name="jpox" key="length" value="65365"/>

			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		
		<field name="trabalhador">
			<extension vendor-name="jpox" key="column-name" value="trabalhador_id"/>

			<extension vendor-name="evolute" key="java-type" value="Trabalhador"/>
		</field>
		
		<field name="medico">
			<extension vendor-name="jpox" key="column-name" value="medico_id"/>

			<extension vendor-name="evolute" key="java-type" value="Medico"/>
		</field>
		
		<field name="pdf">
			<extension vendor-name="jpox" key="column-name" value="pdf"/>

			<extension vendor-name="evolute" key="java-type" value="byte[]"/>
		</field>
		
		<field name="fo">
			<extension vendor-name="jpox" key="column-name" value="fo"/>

			<extension vendor-name="evolute" key="java-type" value="byte[]"/>
		</field>
		
		<field name="inactivo" null-value="default">
			<extension vendor-name="jpox" key="column-name" value="inactivo"/>
			<extension vendor-name="jpox" key="length" value="1"/>

			<extension vendor-name="evolute" key="visible" value="false"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
	</class>

<!-- ETIQUETAS -->
	<class name="Etiqueta" identity-type="application" objectid-class="siprp.data.EtiquetaID">
		<extension vendor-name="jpox" key="table-name" value="etiquetas"/>
		<extension vendor-name="jpox" key="use-poid-generator" value="true"/>
		<extension vendor-name="jpox" key="poid-class-generator" value="org.jpox.poid.MaxPoidGenerator"/>

		<field name="id" primary-key="true">
			<extension vendor-name="jpox" key="column-name" value="id"/>

			<extension vendor-name="evolute" key="java-type" value="Integer"/>
			<extension vendor-name="evolute" key="visible" value="false"/>
		</field>
	    <field name="descricao">
			<extension vendor-name="jpox" key="column-name" value="descricao"/>
			<extension vendor-name="jpox" key="length" value="255"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		<field name="descricao_plain">
			<extension vendor-name="jpox" key="column-name" value="descricao_plain"/>
			<extension vendor-name="jpox" key="length" value="255"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		<field name="altura">
			<extension vendor-name="jpox" key="column-name" value="altura"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
		<field name="largura">
			<extension vendor-name="jpox" key="column-name" value="largura"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
		<field name="margem_esquerda">
			<extension vendor-name="jpox" key="column-name" value="margem_esquerda"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
		<field name="margem_cima">
			<extension vendor-name="jpox" key="column-name" value="margem_cima"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
		<field name="colunas">
			<extension vendor-name="jpox" key="column-name" value="colunas"/>
			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		<field name="linhas">
			<extension vendor-name="jpox" key="column-name" value="linhas"/>
			<extension vendor-name="evolute" key="java-type" value="Integer"/>
		</field>
		<field name="continua">
			<extension vendor-name="jpox" key="column-name" value="continua"/>
			<extension vendor-name="jpox" key="length" value="1"/>
			<extension vendor-name="evolute" key="java-type" value="String"/>
		</field>
		<field name="altura_folha">
			<extension vendor-name="jpox" key="column-name" value="altura_folha"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
		<field name="largura_folha">
			<extension vendor-name="jpox" key="column-name" value="largura_folha"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
		<field name="margem_vertical_folha">
			<extension vendor-name="jpox" key="column-name" value="margem_vertical_folha"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
		<field name="margem_horizontal_folha">
			<extension vendor-name="jpox" key="column-name" value="margem_horizontal_folha"/>
			<extension vendor-name="evolute" key="java-type" value="Double"/>
		</field>
	</class>
</package>
</jdo>
