Skip to content

Commit

Permalink
Changed sequence on records, so they are now ordered by modiefieddate…
Browse files Browse the repository at this point in the history
… primarily NSPSUPPORT-59
  • Loading branch information
Kjeld Froberg committed Jun 19, 2012
1 parent 3923c5d commit 804d625
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public <T extends View> List<T> findPage(Class<T> type, String recordId, Date mo
// the same
// time stamp for each of the records in to batch.

String SQL = " FROM " + type.getName() + " WHERE ((recordID > :recordID AND modifiedDate = :modifiedDate) OR (recordID > :recordID) OR (recordID = :recordID AND modifiedDate > :modifiedDate)) ORDER BY recordID, modifiedDate";
String SQL = " FROM " + type.getName() + " WHERE ((recordID > :recordID AND modifiedDate = :modifiedDate) OR (recordID > :recordID) OR (recordID = :recordID AND modifiedDate > :modifiedDate)) ORDER BY modifiedDate, recordID";

Query query = session.createQuery(SQL);
query.setParameter("recordID", id);
Expand Down

0 comments on commit 804d625

Please sign in to comment.