Hi All,

I have a requirement to define a cache class, for which its instance
qualifies only for value.

public class EntryIndexedAttributes
{

  @QuerySqlField( orderedGroups = { @QuerySqlField.Group(
      name = "generic_attr_idx", order = 0) ,
      @QuerySqlField.Group(
          name = "generic_attrVal_idx", order = 0)} )
  private Long entryID;

  @QuerySqlField( orderedGroups = { @QuerySqlField.Group(
      name = "generic_attr_idx", order = 1) } )
  private String attrType;

  @QuerySqlField( orderedGroups = { @QuerySqlField.Group(
      name = "generic_attr_idx", order = 2),
      @QuerySqlField.Group(
          name = "generic_attrVal_idx", order = 1)} )
  private String attrValue;

}

While defining the cache , it looks like I need to aways specify the key
type ?

    CacheConfiguration<Long, EntryIndexedAttributes> cacheCfg =
        new CacheConfiguration<>("EntryIndexedAttributes");


Thanks,
-Rajesh

Reply via email to