<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
  <entity name="geosapiens\propesqBundle\Entity\LocalDescargaEndereco" table="local_descarga_endereco">
    <change-tracking-policy>DEFERRED_IMPLICIT</change-tracking-policy>
    <id name="id" type="integer" column="id">
      <generator strategy="SEQUENCE"/>
    </id>
    <field name="txtLogradouro" type="text" column="txt_logradouro"/>
    <field name="txtBairro" type="string" column="txt_bairro" length="255"/>
    <field name="txtCep" type="string" column="txt_cep" length="9"/>
    <field name="txtComplemento" type="string" column="txt_complemento" length="255"/>
<!--    <one-to-one field="codLocalDescarga" target-entity="LocalDescarga" orphan-removal="" fetch="EXTRA_LAZY">
      <join-columns>
        <join-column name="cod_local_descarga" referenced-column-name="id"/>
      </join-columns>
    </one-to-one>-->
<!--    <many-to-one field="codLocalDescarga" target-entity="LocalDescarga" orphan-removal="">
      <join-columns>
        <join-column name="cod_local_descarga" referenced-column-name="id"/>
      </join-columns>
    </many-to-one>-->
    
    <many-to-one field="codMunicipio" target-entity="Municipio" orphan-removal="">
      <join-columns>
        <join-column name="cod_municipio" referenced-column-name="id"/>
      </join-columns>
    </many-to-one>
    <many-to-one field="codTipoLogradouro" target-entity="TipoLogradouro" orphan-removal="">
      <join-columns>
        <join-column name="cod_tipo_logradouro" referenced-column-name="id"/>
      </join-columns>
    </many-to-one>
    <lifecycle-callbacks/>
  </entity>
</doctrine-mapping>
