Leap

Database access in Java

· Sai Kiran

Introduction

While working on a java micro-service that exposes REST APIs or a web application (that returns server-side rendered web pages to a “web browser”), or web application development in-general, we will have a requirement to access databases in Java. There are wide variety of frameworks to ease the database access in Java. For example, JDBC, Hibernate, Spring JPA, mybatis etc. I was confused why we have these many frameworks and which one to use when. I’ve worked in a project that uses mybatis for database access and hibernate as well (long time back). For me, Java & Databases: An Overview of Libraries & APIs helped me to understand various frameworks or libraries and when to use them. I came to know that blog while going through What is MyBatis?, also Philosophy and Apology from MyBatis has a good use case to understand.

Other references