• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Persistence With Hibernate: Spring JDBC vs Hibernate ORM

 
Henry Naftulin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would be great to go through the new book. Will there be a comparison of Spring ORM and Hibernate? Does it show how to use unit tests to test spring persistence with hibernate? does it go into detail on how to get reference data setup?

Thank you,

Henry
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will there be a comparison of Spring ORM and Hibernate?

There's no such thing as Spring ORM. Spring supports the integration of some ORM frameworks like Hibernate, JPA... According to the publisher, there are some content about JPA and GORM.
 
Paul Fisher
author
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Henry,

Testing and testing strategies is a significant component of our book. We discuss techniques for building unit and integration tests for your persistence layer, and cover approaches related to mocking, reference data seeding, automatic rollback at the end of a test, and more. The authors are all big fans of testing, and I think this is an area where Spring really shines, as it helps to decouple your layers and dependencies, encourages interface design, and makes testing more attainable.

Thanks for your question, and I look forward to speaking with you soon.

Best Regards,

Paul

Paul Tepper Fisher
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

What testing frameworks did you use?

I'm especially interested in the seeding and rollback.

Gian
 
Brian Murphy
Author
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Gian,

We cover JUnit, the Spring TestContext framework and toss in a bit of JMock as well.

Cheers,

Brian D. Murphy
@brimurph
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic