Results 1 to 6 of 6

Thread: hibernate 3: Christian Bauer's notes

  1. #1
    Join Date
    Jun 2005
    Posts
    7

    Default hibernate 3: Christian Bauer's notes

    Hi, im very new to the spring framework, im trying to understand the hole thing.
    Im very interested on the "first class" support for hibernate, reading around i found very good tutorials on the topic, but suddently i found this,

    http://hibernate.bluemars.net/110.html


    do you have any comments on the bold notes from Christian Bauer?
    Should i be worried about the spring-hibernate future support and integration ?
    thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Code:
    Should i be worried about the spring-hibernate future support and integration ?
    I don't think so. The Spring team are top developers. I guess it's a small concern that the tone of the notes are unsupportive of Spring, but that doesn't really stop Spring from integrating.

  3. #3

    Default

    The hibernate guys have a container philosophy to sell (JBOSS), and in general seem to think the world revolves around them. So don't be suprised that they say a container and specifically JBOSS and Hibernate is the only answer for everything for all time...

  4. #4
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    I guess there's also a concern that Spring makes it easy to switch from Hibernate to Toplink, JDO, iBatis, JDBC, OJB. Not something Hibernate would want to promote.

    I think you'd find migration from Hibernate2 to Hibernate3 simpler if you were using Spring than just Hibernate2 - that says something about good design to me.

    I'll try to add some specific replies here:
    Quote Originally Posted by Juergen Hoeller
    Spring's generic transaction management for DAOs is of particular interest
    Quote Originally Posted by Christian Bauer
    Note: It's also a proprietary alternative.
    But...it's fully portable - from application to container A to container Z.
    And don't forget that you can mix JDBC and Hibernate in the same transaction (being careful of you cache of course)


    Quote Originally Posted by Christian Bauer
    While some of this template functionality had its use for Hibernate 2.x, it is no longer needed for Hibernate 3.x...I assume rollback-on-exception is wanted here
    ...and the consistent exception hierarchy

    Quote Originally Posted by Christian Bauer
    This kind of refactoring is hard to do if the native API (Session) is being hidden from you and flattened into something not envisioned by the original designers.
    You can always obtain the Session in the HibernateCallback. That's not "hard to do".

    Quote Originally Posted by Christian Bauer
    Note: Without Spring dependencies, the code above can be reduced to:
    Similar to Christian's comment "If you put a little extra effort into HibernateUtil...", with a little bit of effort you can add you own convenience methods to reduce the example to a one liner, if you find you need it.

    Quote Originally Posted by Christian Bauer
    To summarize: Spring transaction demarcation has some benefits if you don't know your deployment environment
    I don't get this. It's more powerful in rules declaration, and useful for testing outside of the container..

    Quote Originally Posted by Christian Bauer
    and don't want to maintain a few lines of code yourself in the HibernateUtil class (or simply don't want to copy it from the Hibernate documentation and/or CaveatEmptor)
    The less cut 'n' paste, and the more code managed by a tested quality framework the better.

  5. #5
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    There is a related thread on the user mailing list.

  6. #6
    Join Date
    Nov 2004
    Location
    Atlanta, GA, USA
    Posts
    42

    Default

    The original page has been removed from the Hibernate site. Here is an archived link.

    http://web.archive.org/web/200411300...e.org/110.html

Similar Threads

  1. Replies: 5
    Last Post: Dec 27th, 2005, 07:00 AM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  4. Replies: 9
    Last Post: Sep 25th, 2004, 12:35 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •