Status: New
Owner: ----
New issue 764 by [email protected]: @Finder annotation issue
http://code.google.com/p/google-guice/issues/detail?id=764
In @Finder annotation returnAs() has default value Collection.class.
However, if you forget to specify it, it throws an exception because it
cannot create an instance of class Collection.class. e.g.
// the following will throw an exception.
@Finder(namedQuery = "MyNamedQuery")
List<MyEntity> someQuery(@Named("name") String name);
// this is fine
@Finder(namedQuery = "MyNamedQuery", returnAs = LinkedList.class)
List<MyEntity> someQuery(@Named("name") String name);
returnAs() should either have no default value, to enforce the user to
specify it, or have LinkedList.class/ArrayList.class as a default value.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.