I do everything step by step as is give here. However when i store something to the database ... it does not get stored and it seems that there is some kind of a transaction rollback. I can say this because if i store something beforehand, I get a primary key violation if i try to store throught spring hibernate. So i know my sql statement is atleast hitting the database.
Does anyone know or can send me a small snippet of code showing how can i commit a transaction with spring explicitly.
Many thanks for any help or input. This is really driving me insane.
posted 8 years ago
use transaction.commit() after your insert query
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads