spring-projects/spring-data-couchbase — pull request #14 by dharrigan (2013-10-11 14:12:50+00:00)
Title: DATACOUCH-16 - Allow View customization through @View annotations.

An initial first attempt at allowing for basic View customization using the
@View annotation.

For now, it does not support "dynamic" finders, such as findByUsername, but
I'm sure it will come shortly aftewards.

Also added in hamcrest library to gradually transistion deprecated JUnit
methods to a better assertion library :-)

This is an updated PR that includes feedback from Oliver. It uses a ThreadLocal to store the View which is later retreived in the SimpleCouchbaseRepository. This is a similar approach as how LockModeRepositoryPostProcessor is used in Spring Data JPA.

I welcome feedback! :-)

-=david=-