Hibernate for Java SE
Subject:   Hibernate and Spring outside the container
Date:   2005-11-29 10:28:27
From:   JohnSanda

You raised some interesting points in your article, but there are others that are somewhat questionable. Why would you choose to open and manage your own JDBC connection and then populate the Hibernate Configuration with redundant information? It seems a bit backwards. Why not get your connection from the Session? Why would you avoid using Spring outside the container considering it still has numerous benefits when used outside the container? I have found that it is easier to learn both Hibernate and Spring by using them outside a container. Even when I do use Hibernate and/or Spring in a container, I still use them outside the container for unit testing.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Hibernate and Spring outside the container
    2005-11-29 10:46:40  Jason-Lee [View]

    My aim for this article was not to really write something about the standard way of using Hibernate and Spring together; there's ample documentation for that (which can sometimes actually turn people off I feel as it can become overwhelming). Instead, my goal was really to explore possible scenarios and to think of things from different angles. Whether or not this is perceived as backwards is totally up to the reader. If I was able to raise interesting points, then I succeeded in what I set out to do. :) Thanks for the comment.