@Retention(value=RUNTIME) @Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) public @interface RiakLinks
The type must be Collection<RiakLink>.
class MyPojo { @RiakLinks Collection<RiakLink> riakLinks; } class MyPojo { private Collection<RiakLink> riakLinks; @RiakLinks public void setRiakLinks(Collection<RiakLink> riakLinks) { this.riakLinks = riakLinks; } @RiakLinks public Collection<RiakLink> getRiakLinks() { return riakLinks; } }
Copyright © 2014. All rights reserved.