How to write delete query using createSQLQuery. My query is :-
List technologydeleteList = session.createSQLQuery("Delete from lkup_detl tel where tel.lkup_value_desc='"+technology.getstrName()+"' and tel.lkup_cd='TECHNOLOGY' ") .addEntity("tel",SBUSelection.class).list();
On submitting the page the page gives error. But on going back and refreshing the page the value is deleted from the database.