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

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 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·10 vueswww.mybatis.org/generator↗

Generator

MyBatis Generator est un outil qui inspecte les tables de base de données pour produire automatiquement des objets modèles, des interfaces de mapper et des fichiers de configuration SQL. Il fonctionne comme un mappeur de schéma de base de données et un générateur d'opérations CRUD, traduisant les colonnes de base de données relationnelle en classes et enregistrements spécifiques au langage.

Le projet est un générateur de code extensible qui permet la personnalisation des fichiers de sortie via un mécanisme de plugin. Ce framework permet l'ajout d'une logique métier spécifique ou la modification du processus de génération pour produire des fichiers de sortie sur mesure.

Le générateur couvre un large éventail de capacités, notamment l'implémentation de requêtes dynamiques, la création de modèles immuables et l'automatisation des opérations standard de création, lecture, mise à jour et suppression. Il prend en charge le mappage de schéma de base de données avec des clés primaires virtuelles et peut générer du code pour plusieurs langages, y compris Kotlin.

Le processus de génération peut être exécuté via des outils en ligne de commande, des appels de fonction directs ou en tant que plugin d'outil de build intégré dans des pipelines d'intégration continue.

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.

Historique des stars

Graphique de l'historique des stars pour mybatis/generatorGraphique de l'historique des stars pour mybatis/generator

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Collections incluant Generator

Sélections manuelles où Generator apparaît.
  • Générateurs de types à partir de schémas SQL

Questions fréquentes

Que fait mybatis/generator ?

MyBatis Generator est un outil qui inspecte les tables de base de données pour produire automatiquement des objets modèles, des interfaces de mapper et des fichiers de configuration SQL. Il fonctionne comme un mappeur de schéma de base de données et un générateur d'opérations CRUD, traduisant les colonnes de base de données relationnelle en classes et enregistrements spécifiques au langage.

Quelles sont les fonctionnalités principales de mybatis/generator ?

Les fonctionnalités principales de mybatis/generator sont : Database Schema Code Generators, MyBatis Mapper Code Generators, Column Mappings, CRUD Operations, Dynamic Query Generation, CRUD Interfaces, Database Schema Mapping, Language-Specific Model Generation.

Quelles sont les alternatives open-source à mybatis/generator ?

Les alternatives open-source à mybatis/generator incluent : 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…

Alternatives open source à Generator

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Generator.
  • abel533/mapperAvatar de abel533

    abel533/Mapper

    7,370Voir sur 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
    Voir sur GitHub↗7,370
  • go-xorm/xormAvatar de go-xorm

    go-xorm/xorm

    6,628Voir sur 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
    Voir sur GitHub↗6,628
  • dotnetcore/freesqlAvatar de dotnetcore

    dotnetcore/FreeSql

    4,388Voir sur 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
    Voir sur GitHub↗4,388
  • aarondl/sqlboilerAvatar de aarondl

    aarondl/sqlboiler

    6,989Voir sur 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
    Voir sur GitHub↗6,989
Voir les 30 alternatives à Generator→