• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Spring in Action Question/Persistence

 
Ranch Hand
Posts: 493
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you please write to the advantages and disadvantages of using Spring with MyBatis as opposed to using built-in Spring Persistence?
 
author
Posts: 422
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Charles O'Leary wrote:Could you please write to the advantages and disadvantages of using Spring with MyBatis as opposed to using built-in Spring Persistence?



I'm unclear what you mean by "built-in Spring Persistence". Spring doesn't have it's own persistence, but instead builds abstractions on top of other persistence models, including MyBatis.

To be honest, it's been awhile since I've done much with MyBatis, but (unless I'm mistaken), Spring Data JDBC has MyBatis integration. So ultimately, the advantages/disadvantages of that choice versus others are largely dependent on project goals and developer tastes. I can't possibly tell you which you should use.
 
Charles O'Leary
Ranch Hand
Posts: 493
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the clarity.  Previously, I had used Spring MVC with Hibernate, while my future use will likely be using MyBatis integration.  I had always wondered what, if anything, I missed and/or would miss by not using a "Spring branded" persistence such as Spring JDBC.

Charles  
 
Craig Walls
author
Posts: 422
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Charles O'Leary wrote:Thanks for the clarity.  Previously, I had used Spring MVC with Hibernate, while my future use will likely be using MyBatis integration.  I had always wondered what, if anything, I missed and/or would miss by not using a "Spring branded" persistence such as Spring JDBC.



I'd definitely checkout Spring Data JDBC. Try it first in it's "raw" JDBC form to get a feel for how it works. Then add MyBatis to the mix to see how you like it.
 
Charles O'Leary
Ranch Hand
Posts: 493
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Craig Walls wrote:

Charles O'Leary wrote:Thanks for the clarity.  Previously, I had used Spring MVC with Hibernate, while my future use will likely be using MyBatis integration.  I had always wondered what, if anything, I missed and/or would miss by not using a "Spring branded" persistence such as Spring JDBC.



I'd definitely checkout Spring Data JDBC. Try it first in it's "raw" JDBC form to get a feel for how it works. Then add MyBatis to the mix to see how you like it.



Thanks for the tip!
reply
    Bookmark Topic Watch Topic
  • New Topic