/**
 * A POJO account object used for query containing four fields: 
 * firstName, lastName, amount and riskAllowed
 * 
 * Annotations:
 * @SpaceProperty(index=IndexType.BASIC) annotated getters mark the attribute as indexed.
 * Querying indexed fields speeds up read and take operations. 	
 * 
 * @SpaceClass annotation in this example is only to indicate that this class is a space class.
 */
@SpaceClass 
public class Account {
	
	private String firstName;
	private String lastName;
	private Integer amount;
	private Integer riskAllowed;
	.
	.
	/** 
	 *  <code>@SpaceProperty</code> Defines this field data as indexed.
	 *  Querying indexed fields speeds up read and take operations. Possible values of NONE and BASIC.
	 */
	@SpaceProperty(index=IndexType.BASIC)
	public String getFirstName() {
		return firstName;
	}
	.
	.
	more constructors/setters/getters	
}
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence