Hello Frnds,
I want to implement a common method for same type of requirement. Let me give u example : for Currency, Category tables i have created model and these model implements an interface.
interface CommonObject{} pubilc class Currency implements CommonObject{...}
now my CommonDaoImpl contains NamedQuery : query = "from tablename = :tableName order by sortcolunmnam = :sorColunmName asc"
sessionFactory.getCurrentSession().getNamedQuery(query).setParameter(0, tablename).setParameter(1, sortOrderName).list();
I am getting exception : org.hibernate.MappingException: Named query not known: query
please suggest i havn't give u exact code stil u can understand where i am stuck !! plz help me..
|