EntityModeler mangles fetchspec qualifier when it includes a not statement in the middle of it.
-----------------------------------------------------------------------------------------------
Key: WOL-929
URL: http://issues.objectstyle.org/jira/browse/WOL-929
Project: WOProject/WOLips
Issue Type: Bug
Components: wolips
Environment: WOLips 3.4.5581
Eclipse 3.4.1
Reporter: Simon McLean
This statement:
createTS > $createStartDate and source > $source and cnxTS > $cancelStartDate and cnxTS <= $cancelEndDate and createTS <= $createEndDate and serviceDate >= $serviceStartDate and serviceDate <= $serviceEndDate and itinerary.itineraryID = $itineraryID and status = $status and not (status = $notStatus) and voucherID = $voucherID and reference = $reference and itinerary.user.name like $contact and user.name like $traveller and itinerary.organisation.organisationName like $client and createUser = $createUser and itinerary.organisation.oID = $clientOID and type = $type and policyCompliant = $policyCompliant
gets changed to this when teh model is saved / closed / re-opened:
createTS > $createStartDate and source > $source and cnxTS > $cancelStartDate and cnxTS <= $cancelEndDate and createTS <= $createEndDate and serviceDate >= $serviceStartDate and serviceDate <= $serviceEndDate and itinerary.itineraryID = $itineraryID and status = $status and not ((status = $notStatus and voucherID = $voucherID and reference = $reference and itinerary.user.name like $contact and user.name like $traveller and itinerary.organisation.organisationName like $client and createUser = $createUser and itinerary.organisation.oID = $clientOID and type = $type and policyCompliant = $policyCompliant))
move the NOT statement to the end like this:
createTS > $createStartDate and source > $source and cnxTS > $cancelStartDate and cnxTS <= $cancelEndDate and createTS <= $createEndDate and serviceDate >= $serviceStartDate and serviceDate <= $serviceEndDate and itinerary.itineraryID = $itineraryID and voucherID = $voucherID and reference = $reference and itinerary.user.name like $contact and user.name like $traveller and itinerary.organisation.organisationName like $client and createUser = $createUser and itinerary.organisation.oID = $clientOID and type = $type and policyCompliant = $policyCompliant and status = $status and not (status = $notStatus)
and all is ok.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Thu Jan 01 2009 - 19:42:26 EST