Java persistence using MyBatis

- 75%

0
Certificate

Paid

Language

Level

Beginner

Last updated on March 12, 2025 6:24 am

MyBatis is a Java persistence framework that simplifies database interaction. Execute SQL commands, map results to objects, and cache data effortlessly.

Add your review

What you’ll learn

  • Understand MyBatis SQL Mapper
  • Configure MyBatis
  • SqlSesssionFactory and SqlSession
  • Mapping SQL INSERT/SELECT/UPDATE/DELETE statements to your interface methods
  • Manage persistence of RDBMS data in your Java application with out writing a single line of JDBC code

MyBatis is a Java persistence framework that couples objects with stored procedures or SQL statements using an XML descriptor or annotations. MyBatis is free software that is distributed under the Apache License 2.0. MyBatis is a fork of iBATIS 3.0 and is maintained by a team that includes the original creators of iBATIS. Unlike ORM frameworks, MyBatis does not map Java objects to database tables but Java methods to SQL statements.

MyBatis lets you use all your database functionality like stored procedures, views, queries of any complexity and vendor proprietary features. It is often a good choice for legacy or de-normalized databases or to obtain full control of SQL execution. It simplifies coding compared to JDBC. SQL statements are executed with a single line. MyBatis provides a mapping engine that maps SQL results to object trees in a declarative way.

SQL statements can be built dynamically by using a built-in language with XML-like syntax or with Apache Velocity using the Velocity integration plugin. MyBatis integrates with Spring Framework and Google Guice. This feature allows one to build business code free of dependencies. MyBatis supports declarative data caching. A statement can be marked as cacheable so any data retrieved from the database will be stored in a cache and future executions of that statement will retrieve the cached data instead hitting the database. MyBatis provides a default cache implementation based on a Java HashMap and default connectors for integrating with: OSCache, Ehcache, Hazelcast and Memcached. It provides an API to plug other cache implementations.

Who this course is for:

  • A beginner to Java programming
  • Developer looking to execute SQL commands using MyBatis
  • Software developers who create DAO layer of an application

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Java persistence using MyBatis”

×

    Your Email (required)

    Report this page
    Java persistence using MyBatis
    Java persistence using MyBatis
    LiveTalent.org
    Logo
    LiveTalent.org
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.