<?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\DiarioAcontecimento" table="diario_acontecimentos" repository-class="geosapiens\propesqBundle\Repository\DiarioAcontecimentoRepository">
    <change-tracking-policy>DEFERRED_IMPLICIT</change-tracking-policy>
    <id name="id" type="bigint" column="id">
      <generator strategy="SEQUENCE"/>
    </id>
    <field name="datReferencia" type="date" column="dat_referencia" nullable="false" />
    <field name="datAcontecimento" type="date" column="dat_acontecimento" nullable="false" />
    <field name="numDia" type="smallint" column="num_dia" nullable="false" />
    <field name="txtDescricao" type="text" column="txt_descricao" nullable="true" />
    <field name="datCadastro" type="datetime" column="dat_cadastro" nullable="false" />
    <field name="txtLocalidade" type="string" length="255" column="txt_localidade" nullable="true" />
    <field name="txtMunicipio" type="string" length="255" column="txt_municipio" nullable="true" />
    <field name="txtUf" type="string" length="2" column="txt_uf" nullable="true" />
    <field name="txtSynchronizationID" type="string" length="32" column="txt_synchronization_id" nullable="true" />
    <field name="txtMobileVersion" type="string" length="30" column="txt_mobile_version" nullable="true" />
    <field name="txtDeviceId" type="string" length="64" column="txt_device_id" nullable="true" />
    <field name="geoLocalizacao" type="geometry" column="geo_localizacao" nullable="true" />
    <field name="numPrecisao" type="decimal" precision="10" scale="2" column="num_precisao" nullable="true" />
    <field name="datInclusaoMob" type="datetime" column="dat_inclusao_mob" nullable="true" />
    <field name="datEdicaoMob" type="datetime" column="dat_edicao_mob" nullable="true" />
    <many-to-one field="codUsuario" target-entity="Usuario" orphan-removal="">
      <join-columns>
        <join-column name="cod_usuario" referenced-column-name="id" nullable="true" />
      </join-columns>
    </many-to-one>
    <many-to-one field="codLocalidade" target-entity="Localidade" fetch="LAZY">
      <join-columns>
        <join-column name="cod_localidade" referenced-column-name="id" nullable="false" />
      </join-columns>
    </many-to-one>
    <lifecycle-callbacks />
  </entity>
</doctrine-mapping>