Boost Your Java Persistence with MyBatis Generator GUI: Features & Quick Start

Discover the MyBatis Generator GUI tool that streamlines Java POJO and mapping file creation, outlines its six key features, system requirements, and three easy startup methods—including self‑build, IDE launch, and native packaging—so you can quickly generate MyBatis code.

Programmer DD
Programmer DD
Programmer DD
Boost Your Java Persistence with MyBatis Generator GUI: Features & Quick Start

With the Chinese New Year approaching, this article introduces a GUI tool for MyBatis that simplifies the generation of Java POJO files and database mapping files.

mybatis-generator-gui is built on MyBatis Generator and provides a visual interface for rapid code creation.

Key Features

Easy to use: Follow guided steps to generate code without dealing with complex XML configuration.

Minimal operations: Save common database connections and generator settings for one‑click code generation.

Rich plugin support: Includes many commonly used plugins out of the box.

Remote access: Supports OverSSH to connect to databases behind corporate firewalls.

Comprehensive comments: Generates Java entity comments from database column remarks, with options to exclude unwanted comments.

Broad compatibility: Works with MySQL, MySQL8, Oracle, PostgreSQL, SQL Server and other major databases.

Runtime Requirements

JDK 8 (version 1.8.0.60 or higher)

All JDK 11 versions are also supported

Startup Methods

Self‑build Clone the repository and run the following commands:

cd mybatis-generator-gui
mvn jfx:jar
cd target/jfx/app/
java -jar mybatis-generator-gui.jar

IDE launch Open the project in IDEA and run the class com.zzg.mybatis.generator.MainUI, ensuring the JDK version matches.

Quick native launch Package the application as a native executable and run it directly. Example Maven command:

#<icon>${project.basedir}/package/windows/mybatis-generator-gui.ico</icon> for Windows
#<icon>${project.basedir}/package/macosx/mybatis-generator-gui.icns</icon> for macOS
mvn jfx:native

Note: Windows native packaging requires WiXToolset 3+; the packaged JRE makes the installer around 100 MB per platform. The generated installers are located in target/jfx/native.

Below are screenshots of the tool in action:

MyBatis Generator GUI screenshot 1
MyBatis Generator GUI screenshot 1
MyBatis Generator GUI screenshot 2
MyBatis Generator GUI screenshot 2
MyBatis Generator GUI screenshot 3
MyBatis Generator GUI screenshot 3
MyBatis Generator GUI screenshot 4
MyBatis Generator GUI screenshot 4

Give the tool a try during the holiday and explore its capabilities.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaCode GenerationBackend DevelopmentMyBatisGUI ToolDatabase Mapping
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.