Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

fix the account as it is mising an or query

  • Loading branch information...
commit c6ee41f7247a0c2e8035711b890f1fa4bcf8045d 1 parent 74e7c62
@deanhiller authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 input/javasrc/com/alvazan/test/db/
5 input/javasrc/com/alvazan/test/db/
@@ -14,7 +14,8 @@
@NoSqlQuery(name="findBetween", query="select ENTITY b FROM TABLE WHERE b.users >= :from and b.users < :to"),
@NoSqlQuery(name="findAll", query="select ENTITY d FROM TABLE"),
- @NoSqlQuery(name="findAnd", query="select ENTITY a FROM TABLE WHERE and a.isActive=:active")
+ @NoSqlQuery(name="findAnd", query="select ENTITY a FROM TABLE WHERE and a.isActive=:active"),
+ @NoSqlQuery(name="findOr", query="select ENTITY a FROM TABLE WHERE or a.isActive=:active")
public class Account extends AccountSuper{
@@ -70,7 +71,7 @@ public void setIndexedValue(Float users) {
public static List<Account> findOr(Index<Account> index, String name,
boolean active) {
- Query<Account> query = index.getNamedQuery("findAnd");
+ Query<Account> query = index.getNamedQuery("findOr");
query.setParameter("name", name);
query.setParameter("active", active);
return query.getResultList();
Please sign in to comment.
Something went wrong with that request. Please try again.