SQL DDL to Java Entity (JPA & MyBatis-Plus) Converter

BeanTrans parses MySQL, PostgreSQL, and SQLite CREATE TABLE statements into Java entity classes with automatic snake_case-to-camelCase conversion, Lombok @Data, and one-click JPA / Hibernate (@Entity, @Table, @Id) or MyBatis-Plus (@TableName, @TableId) presets.

Key Capabilities

  • Built-in ORM presets for JPA / Hibernate (@Entity, @Table, @Id) and MyBatis-Plus (@TableName, @TableId).
  • Automatically maps SQL snake_case columns and types (BIGINT, VARCHAR, DECIMAL, BOOLEAN) to idiomatic Java fields.
  • 100% browser-local execution—safe for proprietary production database schemas.

Type Mapping Reference

Source Target Notes
BIGINT / INTLong / IntegerMaps SQL integer columns
VARCHAR / TEXTStringMaps SQL string columns
DECIMAL / DOUBLEBigDecimal / DoublePreserves numeric accuracy
BOOLEAN / TINYINT(1)BooleanMaps boolean flags

Frequently Asked Questions

How do I switch between JPA/Hibernate and MyBatis-Plus annotations?
Open the Config drawer at the bottom and select JPA / Hibernate, MyBatis-Plus, or None / Plain under Java → ORM Annotations.
Does BeanTrans support multi-table SQL DDL scripts?
Yes. Each parsed table or nested structure is cleanly organized into output tabs that you can copy individually or all at once.
Is my SQL schema sent to a remote server?
No. BeanTrans runs entirely in your browser without any backend API.