EOQualifier and ERXKey question
EOQualifier and ERXKey question
- Subject: EOQualifier and ERXKey question
- From: Andrew Kinnie <email@hidden>
- Date: Mon, 25 Apr 2011 16:43:23 -0400
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden