• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Spring + iBatis

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Our development team is considering adopting a Spring MVC + iBatis framework mix. I just finished doing a search on this forum looking for discussions and problems with this combination, but I didn't find a lot of either here. I don't know if it is because it is an uncommon blend, or maybe simply devoid of problems

My search (outside of JavaRanch) let me to an article that states the following:

... the SPring Framework supports several alternative persistence layers...iBatis is generally better suited than Hibernate for the following situations:

  • You need to integrate with an existing database
  • Your DBAs and application developers tend to work separately
  • You have more junior Java developers
  • Your data model is relatively simple


  • This seems to describe us pretty well. We are starting a "proof of concept" pilot to use these two frameworks together in our environment. However, not wanting to trust that we will discover all the landmines in the pilot, I'd like to ask this forum the following questions:

  • What has been your experience with iBatis?
  • What could we expect with an iBatis + Spring marriage?
  • Would you recommend a different tool in place of iBatis?


  • As for the last question, Hibernate is pretty well ruled out. We tried it once, found it to be too heavy for our skill level. It lengthened development time and had performance problems. We do not have the bandwidth to acquire Hibernate guru-level skills that framework seems to require to use well and keep tuned.

    Any help / suggestions / resource links would be appreciated.
    [ March 28, 2008: Message edited by: Charles McGuire ]
     
    Ranch Hand
    Posts: 15304
    6
    Mac OS X IntelliJ IDE Chrome
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    My typical toolbox consists of Stripes + Spring + iBatis.

    I use Stripes for the MVC layer
    I use Spring for its DAO helpers and Transactional support
    I use iBatis for persistence.

    I'll always weigh my options on new projects but its hard to go wrong with that combination, for me anyway. Your mileage my vary.
     
    Charles McGuire
    Ranch Hand
    Posts: 99
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Well, I just stepped on a big land mine. iBatis doesn't support auto-generated keys. Ugh.

    https://issues.apache.org/jira/browse/IBATIS-142
     
    Gregg Bolinger
    Ranch Hand
    Posts: 15304
    6
    Mac OS X IntelliJ IDE Chrome
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    It does. Just not in a database independent way. For example, if using MySQL or MS SQL you can do this:

     
    reply
      Bookmark Topic Watch Topic
    • New Topic