O'Reilly logo

Hands-On High Performance with Spring 5 by Dinesh Radadiya, Prashant Goswami, Pritesh Shah, Subhash Shah, Chintan Mehta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to Spring Hibernate and Spring Data

As we saw in previous chapters, Java Database Connectivity (JDBC) exposes an API that hides the database vendor-specific communication. However, it suffers from the following limitations:

  • JDBC development is very much verbose, even for trivial tasks
  • JDBC batching requires a specific API and is not transparent
  • JDBC does not provide built-in support for explicit locking and optimistic concurrency control
  • There is a need to handle transactions explicitly, with lots of duplicate code
  • Joined queries require additional processing to transform the ResultSet into domain models, or data transfer objects (DTO)

Almost all limitations of JDBC are covered by ORM frameworks. ORM frameworks provide for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required