I’ve recently inherited our department’s Java developers. With them comes the joy of using Hibernate with Microsoft SQL Server. I’ll be honest, this is the first time I’ve experienced using object-relational mapping (ORM) with SQL Server. In the past our applications have called stored procedures within SQL Server for all CRUD work. While ORMs definitely speed up the developer’s work by both simplifying and reducing the amount of database coding, left with it’s default configuration settings, it can create some headaches for the DBA and some less then optimal queries for the database server.
I’ll be documenting my experiences as I dive into using Hibernate with SQL Server over the next several posts (I hope). I’ll explain some of the shortcomings of how Hibernate sends it’s queries to SQL Server, and hopefully how to resolve them. I’ll also be posting links to other resources I find useful along the way.
Just to get things started, here is a very brief overview of the current stack we are using:
- SQL Server 2008
- JDBC 3.0 (from Microsoft)
- Hibernate 3.2.2.GA
- Java 1.5
Documentation to get me started:
Wish me luck!
Dan