@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface RiakLastModified
This value is only populated when fetching an object from riak. Setting it when storing an object has no effect. A getter method is not supported; only a setter method may be annotated. The type must be long or Long.
class MyPojo { @RiakLastModified Long lastModified; } class MyPojo { private Long lastModified; @RiakLastModified public void setLastModified(Long lastModified) { this.lastModified = lastModified; } }
Copyright © 2016. All rights reserved.