qmetrics.net

MyBatis Generator

Code generator for MyBatis data access

MyBatis Generator screenshot

MyBatis Generator introspects database tables and emits Java or Kotlin model and mapper code for MyBatis. It reduces manual setup for repetitive CRUD access layers.

Overview

MyBatis Generator (MBG) connects to a JDBC database, reads table metadata, and produces artifacts aligned with a selected runtime style. Outputs can include Java or Kotlin types, mapper interfaces, and SQL maps depending on whether you use legacy XML-oriented runtimes or newer MyBatis Dynamic SQL-oriented runtimes.

Generated code covers insert, update, delete, select, and count operations for configured tables, with variations when keys or BLOB columns differ. Newer runtimes emphasize smaller, Dynamic SQL-based clients; legacy runtimes still emit compatible XML for older MyBatis projects.

MBG runs from the command line, Maven, Ant, or an Eclipse feature. Iterative generation can merge XML and, with JavaParser available, merge Java files so custom edits survive reruns. Kotlin output overwrites or uses new filenames instead of merging.

Teams adopting MyBatis use MBG to bootstrap persistence layers and then hand-author joins, stored procedures, and complex queries the generator does not cover.

Key features

  • Table introspection via JDBC
  • Java and Kotlin output
  • Multiple target runtimes
  • CRUD SQL generation
  • Maven and Ant integration
  • Eclipse tooling
  • XML and Java merge
  • Dynamic SQL runtime option

Use cases

  • Bootstrapping MyBatis mappers
  • Regenerating after schema changes
  • Kotlin MyBatis projects
  • Reducing CRUD boilerplate

Tags

Similar software

Postgres Language Server

Postgres-aware language server and SQL toolchain

Postgres Language Server offers LSP, CLI, HTTP, and WebAssembly access to PostgreSQL-aware completion, diagnostics, formatting, type checking, and migration linting built on libpgquery.

  • LSP autocompletion and hover
  • Syntax and type diagnostics
  • SQL formatting
RustCLIDetails →
★ 5.3k⟳ todayMIT

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.

  • Dedicated Postgres per project
  • Built-in authentication and RLS
  • Auto-generated REST and GraphQL APIs
TypeScriptDetails →
★ 115.9k⟳ todayApache-2.0
Open Source Alternative to:Amazon AuroraFirebase+1

Ghidra

NSA software reverse engineering and disassembly analysis suite

Ghidra is an NSA Research Directorate SRE framework with disassembly, decompilation, graphing, and scripting for analyzing compiled code on Windows, macOS, and Linux.

  • Disassembly and decompilation of binaries
  • Windows, macOS, and Linux support
  • Interactive and automated analysis modes
JavaLinux, macOS, WindowsDetails →
★ 102.1k⟳ 2 days agoApache-2.0

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

  • Spreadsheet-style grid and alternate views
  • Connect Postgres, MySQL, or SQLite
  • Role-based access and locked views
TypeScriptDockerDetails →
★ 65.7k⟳ todaySource-available
DatabasesSelf-hostable
Alternative to:AirtableGoogle Sheets+1

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

  • Strongly consistent Raft replication
  • gRPC and HTTP key-value API
  • Watch keys and directories for changes
GoLinux, macOS, Windows, DockerDetails →
★ 52.7k⟳ yesterdayApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

  • SQL and schema editors
  • Data grid editing
  • ER diagram modeling
JavaLinux, macOS, WindowsDetails →
★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+4