awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mybatis avatar

mybatis/generator

0
View on GitHub↗
5,317 stars·2,483 forks·Java·Apache-2.0·12 viewswww.mybatis.org/generator↗

Generator

MyBatis Generator is a tool that inspects database tables to automatically produce model objects, mapper interfaces, and SQL configuration files. It functions as a database schema mapper and CRUD operation generator, translating relational database columns into language-specific classes and records.

The project is an extensible code generator that allows for the customization of output files through a plugin mechanism. This framework enables the addition of specific business logic or the modification of the generation process to produce tailored output files.

The generator covers a broad range of capabilities, including the implementation of dynamic queries, the creation of immutable models, and the automation of standard create, read, update, and delete operations. It supports database schema mapping with virtual primary keys and can generate code for multiple languages, including Kotlin.

The generation process can be executed via command line tools, direct function calls, or as a build tool plugin integrated into continuous integration pipelines.

Features

  • Database Schema Code Generators - Produces source files and XML configurations by inspecting database table metadata and column definitions.
  • MyBatis Mapper Code Generators - Automatically creates MyBatis model objects and mapper interfaces by inspecting database tables.
  • Column Mappings - Translates database columns into specific language field names and types.
  • CRUD Operations - Executes standard create, read, update, and delete table operations using a lightweight interface.
  • Dynamic Query Generation - Generates flexible search filters and conditional SQL logic without manual static query writing.
  • CRUD Interfaces - Produces the standard interfaces and SQL required to perform CRUD operations on database tables.
  • Database Schema Mapping - Translates database columns into programming language types and naming conventions.
  • Language-Specific Model Generation - Inspects database tables to automatically create language-specific classes and records.
  • Dialect-Specific SQL Generation - Translates database-specific data types and identity key behaviors into compatible language-specific fields and queries.
  • Data Access Layer Generators - Creates model objects and configuration files based on database tables to automate data operations.
  • Database Access Code Generators - Inspects database tables to automatically create the objects and configuration files needed for data operations.
  • Plugin-Based Extensibility - Allows external components to modify the generation process or inject custom code into the final output via a plugin mechanism.
  • Mapper Code Generators - Inspects database tables to automatically create model objects, mapper interfaces, and configuration files.
  • Database Access Object Generators - Creates objects and configuration files based on database table inspection to automate data access operations.
  • Dynamic SQL Generators - Creates complex database filter conditions using functional logic to generate flexible search results without writing static query classes.
  • Virtual - Assigns primary key behavior to columns via configuration when the underlying database lacks formal primary key constraints.
  • Row Field Updates - Modifies only non-null record columns during a save operation to preserve default database values for omitted fields.
  • Typesafe Kotlin Code Generators - Produces idiomatic Kotlin data classes and access code for database structures.
  • Mapper Interface Generators - Creates database mappers using language annotations instead of external configuration files.
  • Plugin-Extensible Code Generation Pipelines - Allows customization of the generation process and output files through a plugin mechanism.
  • Code Generation Templates - Creates model classes and mapper interfaces by populating predefined structures based on the extracted database schema.
  • Source Code Mergers - Combines newly generated code with existing source files while preserving manual modifications and specific code blocks.
  • Build Tool Integrations - Integrates the code generation process into standard build tools and CI pipelines.
  • Build Tool Integrations - Provides a plugin that integrates code generation into project build cycles.
  • Generated File Merging - Combines new configuration files with existing versions without overwriting manual changes.
  • Source File Merging - Combines new generated source code into existing files while preserving specific structures.
  • Immutable Model Generation - Creates immutable objects or records to represent database tables using builder patterns.
  • Generator Extension Plugins - Creates custom plugins to modify the generation process or add new output files to the project.
  • Code Generation Plugins - Modifies the behavior of generated files using a plugin mechanism to add specific logic or structures.

Star history

Star history chart for mybatis/generatorStar history chart for mybatis/generator

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Curated searches featuring Generator

Hand-picked collections where Generator appears.
  • SQL Schema Type Generators

Open-source alternatives to Generator

Similar open-source projects, ranked by how many features they share with Generator.
  • abel533/mapperabel533 avatar

    abel533/Mapper

    7,370View on GitHub↗

    Mapper is a MyBatis-specific library that provides annotation-driven object-relational mapping, enabling single-table CRUD operations without writing SQL or XML. It uses Java reflection and field-level annotations to map entity fields to database columns, configure primary key generation strategies, and generate mapper interfaces and model classes from database schemas. The library distinguishes itself through several practical capabilities. It includes a safe operation guard that blocks delete and update calls lacking query conditions, preventing accidental full-table modifications. Its exam

    Javamappermybatismybatis-plugin
    View on GitHub↗7,370
  • go-xorm/xormgo-xorm avatar

    go-xorm/xorm

    6,628View on GitHub↗

    xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries and maps database rows back into native objects, providing a multi-dialect database driver that supports MySQL, PostgreSQL, SQLite, Oracle, SQL Server, and TiDB. The project features a read-write splitting manager that routes modification requests to a primary database and read requests to replicas. It includes a database schema synchronizer to automatically align table structures and indexes with application data models, as well as a fluent SQL query builder for constructing co

    Gogolangmssqlmysql
    View on GitHub↗6,628
  • dotnetcore/freesqldotnetcore avatar

    dotnetcore/FreeSql

    4,388View on GitHub↗

    FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for multiple relational database providers. It functions as a fluent SQL query builder and database schema synchronizer, allowing developers to align database table and index structures with entity class definitions. The framework is specifically optimized for .NET Native AOT to ensure reduced memory footprints and faster startup times. It includes a database traffic manager to distribute load through read-write splitting, dynamic table sharding, and tenant-based data isolation. Bro

    C#accessclickhousecodefirst
    View on GitHub↗4,388
  • aarondl/sqlboileraarondl avatar

    aarondl/sqlboiler

    6,989View on GitHub↗

    sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed structures and query helpers. It functions as a schema-driven code generator, transforming database tables and relationships into executable Go source code. The project distinguishes itself through a type-safe query builder that uses chainable modifiers to construct SQL statements, eliminating the need for raw string concatenation. It utilizes customizable text templates to generate source code, allowing for the aliasing of schema entities and the creation of custom templates

    Godatabasegogolang
    View on GitHub↗6,989
See all 30 alternatives to Generator→

Frequently asked questions

What does mybatis/generator do?

MyBatis Generator is a tool that inspects database tables to automatically produce model objects, mapper interfaces, and SQL configuration files. It functions as a database schema mapper and CRUD operation generator, translating relational database columns into language-specific classes and records.

What are the main features of mybatis/generator?

The main features of mybatis/generator are: Database Schema Code Generators, MyBatis Mapper Code Generators, Column Mappings, CRUD Operations, Dynamic Query Generation, CRUD Interfaces, Database Schema Mapping, Language-Specific Model Generation.

What are some open-source alternatives to mybatis/generator?

Open-source alternatives to mybatis/generator include: abel533/mapper — Mapper is a MyBatis-specific library that provides annotation-driven object-relational mapping, enabling single-table… go-xorm/xorm — xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries… dotnetcore/freesql — FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for… aarondl/sqlboiler — sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed… mevdschee/php-crud-api — This project is a PHP SQL REST API generator and database API wrapper that automatically transforms SQL database… prest/prest — PostgREST is a tool that automatically transforms a PostgreSQL database schema into a production-ready RESTful API. It…