On 18 Mar 2011, at 13:14, Jon Brisbin wrote:

> As an aside: I'm wrapping up support for Grails GORM-style object mapping in 
> the MongoDB Spring Data Document support. We haven't decided how to apply 
> that mapping strategy to other NoSQL stores yet, but I suspect it'll only be 
> a matter of a month or two before I can get full mapping support in the Riak 
> Spring Data stuff.
> 
> It allows you to map entities al la JPA:
> 
> @Persistent
> class Person {
>   @Id
>   private Integer ssn;
>   @Reference // <- Externally-managed by using links, dbrefs, whatever
>   private List<Child> children;
> }
> 
> There's a metadata model that's responsible for reading annotations and 
> configuring the mapper to know how to marshall/unmarshall entities and what 
> to do with externally-stored relationships (in the case of MongoDB, we use 
> DBRefs). It also supports autowiring and bean post processors, so you can 
> inject resources into your entities:
> 
> @Persistent
> class Person {
>   ...
>   @Autowired
>   private DatastoreTemplate template;
> }
> 
> 
> It will be an interesting addition to the Riak support to have this same 
> level of rich mapping, IMHO.

I was thinking about *exactly* that this morning (using riak's links to model 
references and collections in an ORM) I'm happy to pitch in getting the riak 
support up and running.

> 
> But on to the previous discussion...
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to