Here is how I'm using the injected custom DAO bean method:
public List<NavbarLanguage> findWithNavbar(Navbar navbar) {
if (navbarLanguageCustomDao != null) {
return navbarLanguageCustomDao.findWithNavbar(navbar);
} else {
Criteria criteria =
getSession().createCriteria(getPersistentClass());
criteria.add(Restrictions.eq("navbar",
navbar)).addOrder(Order.asc("languageCode"));
return criteria.list();
}
}
Not sure if it's the best way to go though :-)
--
View this message in context:
http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server-specific-methods-tp5732576p5732611.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]