I have H 3.1.3 and i need to make something like this :
query = tx.getSession().createQuery(
"select new com.comarch.wfm.dao.wrappers.ResourceAdmListWrapper(r, :day, :tx) " +
"from ResourceVO r ");
query.setParameter("resource", resource);
query.setParameter("day", day);
query.setParameter("tx", tx);
now i get exeption : Unable to locate appropriate constructor on class...
An alternative is : creating a list of ResourceVO ,iterating all ResourceVOs and create ResourceAdmListWrapper in loop;
is any possible way to create object in HQL with call a constructrors attribure as a HQL parameter ?
Acure
|