@Index(field = "companyName")
public class Company implements Serializable {
@Id
private long companyId;
private String companyName;
}
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Index
Specifies a field to be indexed.
@Index(field = "companyName")
public class Company implements Serializable {
@Id
private long companyId;
private String companyName;
}
PersistentCollection.createIndex(String, org.dizitart.no2.IndexOptions)
public abstract java.lang.String value
The field name to be indexed.
public abstract IndexType type
Type of the index.