Question
Querying Change Notices created by a specific user
Looking for the right way to call this. I have the user object passed in and want to search for change notices created by that user that are still active. Do I have the right call? I saw a message that "CREATOR" was ambiguous when compiling.
QuerySpec spec = new QuerySpec();
int changeNotice = spec.addClassList(WTChangeOrder2.class, true);
SearchCondition sc = new SearchCondition(WTChangeOrder2.class,WTChangeOrder2.CREATOR, SearchCondition.EQUAL, user.getDisplayIdentifier());
spec.appendWhere(sc, new int[] {changeNotice});
spec.appendAnd();
sc = new SearchCondition(WTChangeOrder2.class, WTChangeOrder2.RESOLUTION_DATE, SearchCondition.IS_NULL);
spec.appendWhere(sc, new int[] {changeNotice});
spec.appendAnd();
sc = new SearchCondition(WTChangeOrder2.class, WTChangeOrder2.NEED_DATE, SearchCondition.LESS_THAN, timestamp);
spec.appendWhere(sc, new int[] {changeNotice});
QueryResult lateCN = PersistenceHelper.manager.find((StatementSpec)spec);

