ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Kishore <rajesh10si...@gmail.com>
Subject cache configuration without Key
Date Sun, 28 Jan 2018 12:36:51 GMT
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

Mime
View raw message