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-flex avatar

mybatis-flex/mybatis-flex

0
View on GitHub↗
2,554 stars·249 forks·Java·apache-2.0·9 viewsmybatis-flex.com↗

Mybatis Flex

MyBatis-Flex is an object-relational mapping framework for Java that extends MyBatis with a fluent API and automated CRUD operations. It provides a data access suite featuring an automatic CRUD data mapper, a type-safe SQL query builder, and a row-based query engine for manipulating records without predefined entity classes.

The framework includes a multi-dialect SQL translator that converts generated syntax across different database engines, such as MySQL, PostgreSQL, and Oracle. It further distinguishes itself by offering annotation-free entity mapping using runtime reflection and naming conventions, alongside configurable strategies for automatic primary key generation.

The library covers broad capability areas including type-safe query construction with support for joins and subqueries, dynamic database result paging, and lightweight data access abstractions to reduce boilerplate code.

Features

  • Fluent Query Construction - Offers a chainable, object-oriented fluent API for the programmatic construction of SQL statements.
  • ORM Frameworks - Extends MyBatis with a fluent API and automated CRUD operations for object-relational mapping.
  • SQL Query Builders - Provides a programmatic way to build complex SQL queries with joins and subqueries.
  • Object-to-Row Mapping - Simplifies data access by mapping database rows directly to Java objects for retrieval and modification.
  • Database Dialect Adapters - Translates generic database logic into engine-specific syntax for MySQL, PostgreSQL, and Oracle.
  • Entity CRUD Management - Provides a data access layer for standard CRUD operations on entity classes with automatic key generation.
  • Type-Safe Query Construction - Ships a type-safe SQL builder providing compile-time autocompletion for complex joins, grouping, and subqueries.
  • Fluent Query Builders - Offers a type-safe, chainable API for constructing complex SQL queries.
  • Query Condition Builders - Provides a fluent API for constructing complex SQL WHERE clauses and dynamic filtering criteria.
  • SQL CRUD Operations - Simplifies standard create, read, update, and delete operations on relational tables.
  • SQL Dialect Adapters - Translates generated SQL into engine-specific syntax using pluggable dialect adapters at runtime.
  • Reflection-Based Mappings - Implements annotation-free entity mapping by using runtime reflection and naming conventions to link Java objects to database tables.
  • Type-Safe Query Builders - Ensures SQL validity and provides compile-time autocompletion for joins and filters.
  • Object Mapping - Maps database tables to Java objects using runtime reflection and naming conventions.
  • Database Pagination Adapters - Implementing offset and limit logic for large datasets using a standardized adapter that works across different database systems.
  • Row-Based Query Interfaces - Provides a flexible interface to query and manipulate records using key-value mappings instead of entity classes.
  • Dynamic Row Mapping - Enables database operations using a flexible Row object instead of predefined entity classes.
  • Automatic Primary Key Injection - Provides automatic generation and insertion of primary keys using configurable strategies like auto-increment or sequences.
  • Key Generation Strategies - Implements configurable strategies for automatic primary key generation.
  • Entity-Free Querying - Allows manipulating database records via flexible row mapping when entity classes are not desired.
  • Pagination - Wraps query results with metadata and rewrites SQL to include dialect-specific pagination.
  • Raw Query Interfaces - Provides a row-based query engine to manipulate database records without requiring predefined entity classes.
  • Dialect Transformers - Rewrites SQL queries to apply database-specific pagination syntax based on the active dialect.

Star history

Star history chart for mybatis-flex/mybatis-flexStar history chart for mybatis-flex/mybatis-flex

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

Open-source alternatives to Mybatis Flex

Similar open-source projects, ranked by how many features they share with Mybatis Flex.
  • jooq/jooqjOOQ avatar

    jOOQ/jOOQ

    6,666View on GitHub↗

    jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time validation of SQL syntax and data types. Its core identity is built around a fluent DSL that mirrors SQL structure, a code generator that maps tables, views, and routines to Java objects, and a multi-dialect engine that translates the same DSL into vendor-specific SQL for over 30 databases. The project also includes a SQL parser and transformer for refactoring or dialect conversion, reactive stream integration for non-blocking query execution, and a JDBC proxy diagnostics tool f

    Javacode-generatordatabasedb2
    View on GitHub↗6,666
  • 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
  • uptrace/bunuptrace avatar

    uptrace/bun

    4,867View on GitHub↗

    Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping. It functions as a programmable SQL query builder, a database connection manager, and a tool for mapping database tables to Go structs. The project distinguishes itself through a multi-dialect SQL support system, allowing a single codebase to interact with different database engines via a consistent interface. It includes a built-in database observability tool for query interception, distributed tracing, and logging, as well as a schema migration tool for versioning structural c

    Godatabasegogolang
    View on GitHub↗4,867
  • querydsl/querydslquerydsl avatar

    querydsl/querydsl

    4,964View on GitHub↗

    Querydsl is a framework for the construction of type-safe queries. It uses a fluent API and annotation-based code generation to create mirror classes from domain models, enabling compile-time validation of database queries and removing the need for manual string concatenation. The project provides a unified query syntax that translates into specific dialects for multiple backends, including SQL, MongoDB, Lucene, and JDO. It supports advanced query capabilities such as common table expressions, window functions, geospatial operations, and complex nested subqueries. Beyond data retrieval, the

    Java
    View on GitHub↗4,964
See all 30 alternatives to Mybatis Flex→

Frequently asked questions

What does mybatis-flex/mybatis-flex do?

MyBatis-Flex is an object-relational mapping framework for Java that extends MyBatis with a fluent API and automated CRUD operations. It provides a data access suite featuring an automatic CRUD data mapper, a type-safe SQL query builder, and a row-based query engine for manipulating records without predefined entity classes.

What are the main features of mybatis-flex/mybatis-flex?

The main features of mybatis-flex/mybatis-flex are: Fluent Query Construction, ORM Frameworks, SQL Query Builders, Object-to-Row Mapping, Database Dialect Adapters, Entity CRUD Management, Type-Safe Query Construction, Fluent Query Builders.

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

Open-source alternatives to mybatis-flex/mybatis-flex include: jooq/jooq — jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time… go-xorm/xorm — xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries… uptrace/bun — Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping.… querydsl/querydsl — Querydsl is a framework for the construction of type-safe queries. It uses a fluent API and annotation-based code… dotnetcore/freesql — FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for… simolus3/drift — Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database…