Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate connection & transaction management

 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was going through this article on IBM's website. IBM hibernate article link

The author says that Hibernate's connection & transaction management are lacking but does not elaborate. I tried google but could not find anything substantial. Latest Hibernate specs also mention delegating connection mgmt in production environ to the application server, but do not elaborate.

Does any have any more information.
Thanks.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate (on its own) doesn't do much in the way of connection and transaction management; at least not much more than you could do with JDBC. I would assume the rational for not doing more is because Hibernate is just an ORM layer, its not trying to replace other technologies that do much more for connection and transaction management. If you need more elaborate transaction and connection management you would use Hibernate with an application server or Spring. The Hibernate documentation explains how you can use a DataSource and elist in a user or container-managed transaction.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic