Locking with hibernate and thread
===

I have used multiple syncronized thread for processing multiple transaction and these transaction geting from database by using hibernate framwork and used locking concept.
Problem is,each thread process 1st time correctally but next time its throw SQL 01002 and SQL 72000
exception.