Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for warning for missing index needs to be updated. #22

Merged
merged 1 commit into from

2 participants

@baank

No description provided.

@baank

If you have a NoSQLQuery that references an unindexed attribute it throws the following warning:

Caused by: java.lang.IllegalArgumentException: You cannot have 'result.id' in your sql query since id has no @Index annotation on the field in the entity
at com.alvazan.orm.parser.antlr.ScannerSql.processColumnName(ScannerSql.java:541)
at com.alvazan.orm.parser.antlr.ScannerSql.processSide(ScannerSql.java:443)

It should throw the warning:
You cannot have 'result.id' in your sql query since id has no @NoSqlIndexed annotation on the field in the entity.

@easility easility merged commit 1934450 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 22, 2012
  1. @baank
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  input/javasrc/com/alvazan/orm/parser/antlr/ScannerSql.java
View
2  input/javasrc/com/alvazan/orm/parser/antlr/ScannerSql.java
@@ -538,7 +538,7 @@ private static TypeInfo processColumnName(
}
if(!colMeta.isIndexed())
- throw new IllegalArgumentException("You cannot have '"+textInSql+"' in your sql query since "+columnName+" has no @Index annotation on the field in the entity");
+ throw new IllegalArgumentException("You cannot have '"+textInSql+"' in your sql query since "+columnName+" has no @NoSqlIndexed annotation on the field in the entity");
wiring.addEagerlyJoinedView(tableInfo);
StateAttribute attr = new StateAttribute(tableInfo, colMeta, textInSql);
Something went wrong with that request. Please try again.