<?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\LogEventos" table="acesso_propesqmob" repository-class="geosapiens\propesqBundle\Repository\LogEventosRepository">
    <change-tracking-policy>DEFERRED_IMPLICIT</change-tracking-policy>
    <id name="id" type="bigint" column="id">
      <generator strategy="SEQUENCE"/>
    </id>
    <field name="datAcesso" type="datetime" column="dat_acesso"/>
    <field name="numAcao" type="integer" column="num_acao" />
    <field name="txtNumIp" type="string" column="txt_num_ip" length="255"/>
    <field name="txtDeviceEmail" type="string" column="txt_device_email" length="255"/>
    <field name="txtMobileVersion" type="string" column="txt_mobile_version" length="30"/>
    <field name="indDeveloperMode" type="boolean" column="ind_developer_mode" />
    <field name="txtDeviceId" type="string" column="txt_device_id" length="16"/>
    <field name="txtSynchronizationID" type="string" column="txt_synchronization_id" length="16"/>
    <field name="geoLocalizacao" type="geometry" column="geo_localizacao"/>
    <field name="numPrecisao" type="decimal"  precision="5"   column="num_precisao" />
    <one-to-many field="logEventosSinc" target-entity="LogEventosSinc" mapped-by="codLogEventos" fetch="LAZY">
      <cascade><cascade-persist /></cascade>
    </one-to-many>
    <many-to-one field="codUsuario" target-entity="Usuario" orphan-removal="">
      <join-columns>
        <join-column name="cod_usuario" referenced-column-name="id"/>
      </join-columns>
    </many-to-one>
    <lifecycle-callbacks/>
  </entity>
</doctrine-mapping>
