Dave Tolls wrote:
This code is opening two Transactions, and only committing the second one.
You should be retaining the reference to the original Transaction and calling commit on it.
As for the immediate problem, have you got the stack trace of the exception, and can you show where it is being thrown from?
Rafael Ra wrote:It shows all the values passed in the debug, but throws exception in "error update" and finish with rollback :/
Rafael Ra wrote:Thanks for your reply! Following the stracktrace:
Rafael Ra wrote:Really... in my TeamDaoImpl there are two methods using opensession
is that the problem? Because one to show all data in my view and other to get data by ID team (prepare to update)
Rafael Ra wrote:Resolved last week. It's fine!
Thanks!
Changed my HibernateUtil and DAO classes.
All methods must be using session.close and getsession, not opensession
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |