Posts

Build REST CRUD APIs with Kotlin, Spring Boot and MyBatis

Image
Hello everyone. today we will learn how to develop REST-style CRUD APIs with Spring Boot, MyBatis, and H2 Database. More Java topics: Building RESTful API with QUARKUS - Java Quarkus + Maven Hello World Example Configuring the HTTP Port on Quarkus Applications Building RESTful API with Spark - Java Building RESTful API with Dropwizard - Java Spring Boot + JPA/Hibernate Many to Many mapping example Spring Boot + JPA/Hibernate One to Many mapping example Spring Boot + JPA/Hibernate One to One mapping example Technologies used : Spring Boot 2.5.4 Spring  5.3.9 MyBatis  Kotlin Gradle After completing this tutorial what we will build?  We will build REST API  CRUD features:  GET - Fetch all User       :     /api/v1/users GET - Get User by ID     :     /api/v1/users/{id}  POST - Create User         :     /api/v1/users  PUT - Edit User Details   :     /api/v1/users/{id}  DELETE - Delete User    :     /api/v1/users/{id} Project Directory: Gradle Build(build.gradle.kts) import org.jetbrains.kot

Build REST CRUD APIs with Spring Boot and MyBatis

Image
Hello everyone. today we will learn how to develop REST-style CRUD APIs with Spring Boot, MyBatis, and H2 Database. More Java topics: Building RESTful API with QUARKUS - Java Quarkus + Maven Hello World Example Configuring the HTTP Port on Quarkus Applications Building RESTful API with Spark - Java Building RESTful API with Dropwizard - Java Spring Boot + JPA/Hibernate Many to Many mapping example Spring Boot + JPA/Hibernate One to Many mapping example Spring Boot + JPA/Hibernate One to One mapping example Technologies used : Spring Boot 2.5.4 Spring  5.3.9 MyBatis  Java 11 Maven 3 After completing this tutorial what we will build?  We will build REST API  CRUD features:  GET - Fetch all User       :     /api/v1/users GET - Get User by ID     :     /api/v1/users/{id}  POST - Create User         :     /api/v1/users  PUT - Edit User Details   :     /api/v1/users/{id}  DELETE - Delete User    :     /api/v1/users/{id} Project Directory: Maven dependencies(pom.xml) <? xml version ="

Top 5 Java ORM tools - 2021

Image
  ORM stands for object-relational mapping, where objects are acclimated to connect the programming language on to the database systems, with the facility to work SQL and object-oriented programming concepts. It is feasible for ORM to be implemented on any type of database management system where object mapping to the table can be achieved in the virtual system. There are many types of ORM tools in Java, which is listed below: 1. Hibernate Hibernate is an open-source, non-invasive, lightweight java ORM(Object-relational mapping) framework to develop objects which are independent of the database software and make independent persistence logic in all JAVA, JEE. It provides some abstraction layer, meaning that the developers do not have to worry about the implementations, Hibernate does the implementations for us internally like Establishing a connection with the database, writing queries to perform CRUD operations, etc. It is used to develop persistence logic. Persistence logic means sto