Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
objectstore-jdo-1.3.0
-
None
Description
a typical (currently supported) query is:
@javax.jdo.annotations.Query(
name = "findByPropertyAndType", language = "JDOQL",
value = "SELECT "
+ "FROM org.estatio.dom.lease.LeaseTerm "
+ "WHERE leaseItem.type == :leaseItemType "
+ " && leaseItem.lease.occupancies.contains(lu) "
+ " && (lu.unit.property == :property) "
+ "VARIABLES org.estatio.dom.lease.Occupancy lu"),
this ticket is to support queries of the form (note the "SELECT startDate"):
@javax.jdo.annotations.Query(
name = "findStartDatesByPropertyAndType", language = "JDOQL",
value = "SELECT startDate "
+ "FROM org.estatio.dom.lease.LeaseTerm "
+ "WHERE leaseItem.type == :leaseItemType "
+ " && leaseItem.lease.occupancies.contains(lu) "
+ " && (lu.unit.property == :property) "
+ "VARIABLES org.estatio.dom.lease.Occupancy lu")