qmetrics.net

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis 3 screenshot

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

Overview

MyBatis is a persistence layer for Java that connects object-oriented application code to relational databases. It maps primitives, maps, and POJOs to rows using SQL you define, rather than driving every query through a heavy object–relational mapping layer.

You configure statements with XML descriptors or annotations. The framework runs custom SQL and stored procedures and supports advanced result mappings while taking care of much of the JDBC wiring.

Project documentation describes it as a persistence framework focused on simplicity compared with full ORM tooling. It targets teams that want explicit SQL with structured mapping into Java types.

Manual and translated guides cover setup, statement mapping, and how MyBatis fits alongside other database access options in Java applications.

Key features

  • Custom SQL and stored procedures
  • XML or annotation configuration
  • POJO and map result mapping
  • Reduced JDBC boilerplate
  • Advanced mapping support
  • Primitive type mapping
  • Object–SQL coupling
  • Persistence-focused API

Use cases

  • Java apps with hand-written SQL
  • Mapping query results to POJOs
  • Calling stored procedures from Java
  • Replacing verbose JDBC code
  • Explicit SQL with structured mappings

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app

Efcore

.NET object-relational mapper with migrations and LINQ

Entity Framework Core maps .NET objects to relational databases, supports LINQ queries, change tracking, updates, and schema migrations via provider packages.

★ 14.8k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app