http://stackoverflow.com/questions/5748934/does-guice-persist-support-the-finder-annotation

On Apr 21, 1:49 pm, Benju <[email protected]> wrote:
> I used to use warp-perist and am now trying to move to guice-perist.
> I need to know, does guice-perist support finders?  There is no
> documentation on the wiki and when I add a @Finderannotation like I
> would  in warp-perist the implemtation is never generated and the stub
> code returns....
>
> For example if I do this I get the exception
> UnsupportedOperationException being thrown even though the class my
> method is inside is request scoped and obtained via the injector.
>
>     @Transactional
>     @Finder(query = "from User u where lower(u.email) = :userName and
> u.password = :password")
>     public User findUser(@Named("userName") String userName,
> @Named("password") String password) {
>         throw new UnsupportedOperationException();
>     }

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to