title: Using @Transactional with hibernate
body: <p>I am using hibernate for the REST API. Right now all the transactions are handled by explicitly calling beginTransaction and transaction.commit. The transaction is rolled back in case of a failure. I am looking to use @Transactional instead of all the beginTransactions and commit transactions. Could someone tell me how can I integrate @Transactional in my hibernate. I am using mysql for querying the database. </p>