﻿<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
  <entity name='llp_throws'>
    <attribute name='llp_name'/>
    <attribute name='llp_throwcode'/>
    <attribute name='llp_throwdate'/>
    <attribute name='llp_throwsid'/>
    <attribute name='llp_bredanimalid'/>
    <attribute name='llp_policyid'/>
    <order attribute='llp_throwcode' descending='false'/>
    <filter type='and'>
      <condition attribute='llp_bredanimalid' operator='eq' value='${animalId}'/>
      <condition attribute='statuscode' operator='eq' value='1'/>
    </filter>
  </entity>
</fetch>