Removed DESC keyword from several ORM Queries
In order to better support non-relational DBs that do not support sorting in a descending order, I have removed the DESC keyword from several of the ORM queries in which is was present. Change-Id: Iac9cbc43a62e7e652f721cacf223e8161eb4a280
This commit is contained in:
@@ -25,6 +25,6 @@ public interface AccountAgreementAccess extends
|
||||
@PrimaryKey("key")
|
||||
AccountAgreement get(AccountAgreement.Key key) throws OrmException;
|
||||
|
||||
@Query("WHERE key.accountId = ? ORDER BY acceptedOn DESC")
|
||||
@Query("WHERE key.accountId = ? ORDER BY acceptedOn")
|
||||
ResultSet<AccountAgreement> byAccount(Account.Id id) throws OrmException;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public interface AccountGroupAgreementAccess extends
|
||||
@PrimaryKey("key")
|
||||
AccountGroupAgreement get(AccountGroupAgreement.Key key) throws OrmException;
|
||||
|
||||
@Query("WHERE key.groupId = ? ORDER BY acceptedOn DESC")
|
||||
@Query("WHERE key.groupId = ? ORDER BY acceptedOn")
|
||||
ResultSet<AccountGroupAgreement> byGroup(AccountGroup.Id id)
|
||||
throws OrmException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user