I am defining a class as:
@Index(name="idKey", fields=Array("name", "id"), type=IndexType.idkey)
class MyObj {
...
}
The library defining @Index is in Java, and it also defines IndexType. The example in Java reads:
@Index(name="indexOne",fields={"ssn","dob"},type=IndexType.idkey)
public class Person {
public String name;
public Date dob;
public String ssn;
}
I am getting "illegal start of simple expression" with an underline of "type" sin the @Index annotation. I assume I have a syntax error crossing the language, but I have tried using the IndexType enum in a method definition and I have tried re-ordering the parameters of @Index and removing the "type=" parameter and it seems like the error is in the phrase "type=IndexType.idkey", but I can't find an example of a similar usage that tells me what the error is.
Thank you.