Not sure if this is doable. I have an entity (Notification) with an attribute
for createDate and another for minutesToExpire which is an Integer and has a
default, but can be changed.
I need to create a qualifier where I get all notifications where the createDate
is after now - minutesToExpire
I have this for my qualifier, but it doesn't work because I am performing an
operation on an ERXKey for the minutesToExpire attribute (I marked this with
[???]).
ERXRestFetchSpecification<Notification> fetchSpec = new
ERXRestFetchSpecification<Notification>(
Notification.CREATE_DATE.after(now.timestampByAddingGregorianUnits(0, 0, 0, 0,
Notification.MINUTES_TO_EXPIRE [???] * -1, 0)),
null,
queryFilter(),
Notification.MODIFY_DATE.descs(), 25);
Any ideas for a qualifier to do this?
Wonder from 2 weeks ago, WO 5.4.3
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]