I am new to hibernate and I am trying to to make inserts with storere procedures on my MySQL database. I have no problem to get information from it, the problem become when I am trying to insert data to it.
Here is my code in the hbm.xml file (It is only the part where I am trying to implement my store procedure that are going to insert values in database):
Here is a part of the
Java code:
The store procedure is working fine.
I got following error message when I am trying to execute:
"Exception in
thread "AWT-EventQueue-0" org.hibernate.TransactionException: Transaction not successfully started"
Does anyone have any suggestion?