com.basho.riak.client.convert
Annotation Type RiakLinks


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface RiakLinks

Annotation to declare a field as holding a collection of RiakLinks

Annotate a single field in your domain class. It must be a Collection. This is so ORM features can still be used and RiakLink data made available. At a later date this will be used to model relationships/graphs of domain objects. For now it sticks a Riak domain thing in your domain.

For example:

 public class MyClass {
     \@RiakKey
     private String myKeyString;
     
     \@RiakLinks
     private Collection links;
 }
 

Author:
russell
See Also:
JSONConverter, DefaultBucket



Copyright © 2012. All Rights Reserved.