@Retention(value=RUNTIME) @Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.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 © 2014. All rights reserved.