I have this problem, using native query on Hibernate. This the query :
Query query = session.createSQLQuery(
"UPDATE InvoiceItems SET current_balance = '"+current_balance+"' WHERE record_id = '"+record_id+"'");
query.executeUpdate();
but i get this error when run the query :
javax.persistence.TransactionRequiredException: Executing an update/delete query
any suggest ? i have try with this way : TransactionRequiredException Executing an update/delete query