@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface RiakContentType
The type must be a String
.
In most cases this is not needed as the Converter
will supply the appropriate content-type during serialization.
class MyPojo { @RiakContentType String contentType; } class MyPojo { private String contentType; @RiakContentType public void setContentType(String contentType) { this.contentType = contentType; } @RiakContentType public String getContentType() { return contentType; } }
Copyright © 2016. All rights reserved.