This content has been marked as final.
Show 4 replies
-
1. Re: Unchecked cast from List - typesafe injection
pmuir Sep 6, 2010 6:03 AM (in response to nimo22)We are planning a similar extension :-)
-
2. Re: Unchecked cast from List - typesafe injection
nimo22 Sep 6, 2010 7:11 AM (in response to nimo22)Good to know - thanks!
-
3. Re: Unchecked cast from List - typesafe injection
wujek Sep 7, 2010 5:13 AM (in response to nimo22)Are you using JPA2? I guess as you are using CDI, JPA2 is an option as well. If so, then you have:
TypedQuery<User> usersQuery = em.createNamedQuery("getUsers", User.class);
List<User> users = usersQuery.getResultList();
? -
4. Re: Unchecked cast from List - typesafe injection
nimo22 Sep 7, 2010 6:49 AM (in response to nimo22)Wow, that s a cool feature, didnt know it. thanks !!