@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface RiakVTag
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 String.
class MyPojo { @RiakVTag String vtag; } class MyPojo { private String vtag; @RiakVTag public void setVTag(String vtag) { this.vtag = vtag; } }
Copyright © 2016. All rights reserved.