Skip to content

Introduction

Welcome to the world of Jvyou-Mybatis! This is a meticulously designed persistence layer framework aimed at providing a more concise and efficient way to handle database operations, making the interaction between your Java applications and data as natural as breathing.

Overview

Jvyou-Mybatis integrates the strengths of traditional ORM frameworks while introducing innovative design concepts. It allows you to write SQL statements directly, free from the constraints of the framework, ensuring optimized performance and maximized flexibility. Whether you are building enterprise-level applications or rapid prototyping, Jvyou-Mybatis will be your capable assistant.

Features

  • Code Simplification: Reduces unnecessary template code, making your projects lighter.
  • SQL Control: Supports native SQL, making performance tuning straightforward and intuitive.
  • Flexible Mapping: Customizable rules for SQL-to-object mapping, adaptable to various business scenarios.
  • Seamless Integration: Effortlessly integrates into existing Java projects, compatible with multiple development environments.
  • Built-in Caching: Provides caching mechanisms, effectively enhancing query efficiency.
  • Advanced Functionality: Supports stored procedures, transaction management, and more, meeting complex requirements.
  • Ease of Maintenance: Separates SQL from code, facilitating maintenance and optimization later on.

Supported Databases

Currently Supported

  • MySQL

Planned Support

  • PostgreSQL
  • Oracle
  • SQL Server
  • SQLite
  • H2 (In-memory Database)

Framework Architecture

Jvyou-Mybatis adopts a modular design philosophy, primarily composed of the following core components:

  • Configuration: Loading and parsing configuration information.
  • SqlSessionFactory: Factory for creating SqlSession instances.
  • SqlSession: Main interface for executing SQL statements, providing CRUD functionalities.
  • Executor: Responsible for executing SQL statements and handling result sets.
  • StatementHandler: Statement processor, responsible for preprocessing SQL statements and executing them.
  • ParameterHandler: Parameter processor, responsible for binding parameters to SQL statements.
  • ResultSetHandler: Result set processor, responsible for handling the results returned by SQL statements.

Code Repository

Our source code is hosted on GitHub and Gitee. Feel free to view, download, or submit a Pull Request anytime:

Contributing

We warmly welcome contributors from the community to join us in developing Jvyou-Mybatis! If you have suggestions for improvements, bug fixes, or new features, please follow these steps:

  1. Read the Contribution Guide to learn how to submit a PR.
  2. Fork this project on GitHub.
  3. Create a branch describing your changes.
  4. Submit your code changes and create a Pull Request.

Let's work together to make Jvyou-Mybatis an even stronger data access solution!

RMade by Jvyou Team with ❤️ Jvyou