Krunal Patel 3 Years Ago - Edited Nicely explain. This will really helpful in case where have to call complex store procedures to fetch data. Please sign in to reply. Reply as... Cancel
Aniket Pathare 3 Years Ago - Edited Very helpful. Thank you Please sign in to reply. Reply as... Cancel
Borja Sanz 2 Years Ago This is how I solved the casting issue: List<Entity> list = null; SQLQuery query = session.createSQLQuery("THE QUERY"); query.addEntity("Entity",EntityImpl.class); list = (List<Entity>) q.list(); return list; Please sign in to reply. Reply as... Cancel
Scarletake Bwi 2 Years Ago - Edited hi, it's very helpful. but why don't you just create a mothad in LocalServiceUtil for example: Connection con = XXXPersistence.getDataSource().getConnection(); do something....... finally, DataAccess.cleanUp and do jsut like normal java. Please sign in to reply. Reply as... Cancel