Good points. Depends on what you call a "DAO".
| List resultList =
| em.createNamedQuery("userFavoritesEntity.findByUser")
| .setParameter("user", user)
| .getResultList();
|
Where that code lives could be called a DAO, no? And all other places that
need to run that query would then call that DAO method to perform that query.
But I see your point.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929138#3929138
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929138
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user