Udemybeginneren

Java persistence using MyBatis

Java & RDBMS: Simplify database access without JDBC. Learn efficient data handling for your Java applications.

4.3(36)
151students
1h 5m
Certificate
Vinod Kumar Kayartaya
Vinod Kumar KayartayaEvangelist, Consultant and Developer.

Course Content

Java persistence using MyBatis is a beginner-level Udemy course taught by Vinod Kumar Kayartaya. It runs 1h 5m, is taught in English, and includes a certificate of completion. Learners rate it 4.3 out of 5 from 36 reviews, with 151 students enrolled. It is a paid course, last updated June 2020.

MyBatis: A Powerful Java Persistence Framework

Looking for a robust Java persistence framework? MyBatis is a popular, open-source solution that bridges the gap between your Java code and your database. It's free to use under the Apache License 2.0 and a well-maintained fork of iBATIS 3.0, developed by the original iBATIS creators.

Unlike many ORM frameworks that map Java objects directly to database tables, MyBatis focuses on mapping Java methods to SQL statements. This provides unparalleled control over your database interactions.

Key Features & Benefits

  • SQL Control: Execute SQL statements with ease, including stored procedures, views, and complex queries. Leverage vendor-specific features without limitations.
  • Simplified Coding: MyBatis significantly simplifies database interaction compared to traditional JDBC. Execute SQL with just a single line of code.
  • Declarative Mapping: The mapping engine translates SQL results into object trees in a declarative manner, making your code cleaner and more maintainable.
  • Dynamic SQL: Build SQL statements dynamically using a built-in XML-like syntax or integrate with Apache Velocity for enhanced flexibility via the Velocity integration plugin.
  • Framework Integration: Seamlessly integrates with Spring Framework and Google Guice, enabling dependency-free business logic development.
  • Data Caching: Improve performance with declarative data caching. Mark statements as cacheable to store data retrieved from the database, reducing database load and improving response times.
  • Flexible Caching Options: MyBatis offers a default cache implementation based on a Java HashMap, and supports integration with popular caching solutions like OSCache, Ehcache, Hazelcast, and Memcached. You can also plug in custom cache implementations.

When to Choose MyBatis

MyBatis is an excellent choice for:

  • Legacy Databases: Working with older database systems or schemas.
  • De-normalized Databases: Managing databases with complex relationships.
  • Full SQL Control: Requiring precise control over SQL execution for performance or security reasons.
  • Complex Queries: Handling intricate database queries that are difficult to map with object-relational mapping.
$ whoami — the devs behind tutorialsearch.io

Need a web app built? Hire the team behind TutorialSearch.io

We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.

5.0(424)
2h 18m
beginner
skillshare
5.0(173)
4h 37m
beginner
skillshare
5.0(106)
7h 4m
intermediate
skillshare