[
https://issues.jboss.org/browse/SEAMFORGE-280?page=com.atlassian.jira.plu...
]
Lincoln Baxter III commented on SEAMFORGE-280:
----------------------------------------------
Ah, I think I am thinking about something else.
You would:
{code}
@Inject UserQuery query;
{code}
then call:
{code}
User user = query.getUserByName("blah");
{code}
But the code to actually instantiate and execute the query would be abstracted away. It
gives you a typesafe way of referencing queries.
Your approach has benefits as well, since you could just:
{code}@Inject @All List<User> users;{code}
So I get that, too. I think both compliment each other. The query I defined would not
@Produce anything, though.
Add ability to generate Entity Query classes with Persistence plugin
(using Named Queries)
------------------------------------------------------------------------------------------
Key: SEAMFORGE-280
URL:
https://issues.jboss.org/browse/SEAMFORGE-280
Project: Seam Forge
Issue Type: Enhancement
Components: Builtin Plugins
Affects Versions: 1.0.0.Beta1
Reporter: Jason Porter
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira