> I have done lots of searching and I haven't found any documentation or
> usage samples for the @Finder documentation.

I started with the unit tests: http://goo.gl/tzNcJ which were very
helpful. The wiki also has good higher level documentation: http://goo.gl/wJL92

> Looking at the source for com.google.inject.persist.finder It seems to
> follow the warp-persist model. But it isn't identical. Apparently in the
> module install you have to addFinder interfaces (not sure why - is that a
> way to get the finder out of the inject chain? - saw that bit in the junit
> tests for persist package) The boxing seems to be a bit different. Can
> anyone point me to any docs or an examples?

Dynamic accessors probably need to be made explicitly known to the
module because I don't think Guice inspects interfaces.
The other change I found from warp-persist was that you need to
specify the implementation of your Collection return type:
@Finder(query="foo", returnAs = HashSet.class)
Set<FooEntity> getFoos();

Hope that helps,
-Chris


-- 
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