What problem does it solve?
This skill standardizes the mapping from common SQL data types to Java DO field types, enabling consistent generation of DO classes from database schemas.
Core Features & Use Cases
- Standard type mappings for varchar/char to String, int/tinyint/smallint to Integer, bigint to Long, decimal to BigDecimal, text types to String.
- Special-field handling guidance (ignore auto_increment, create_time/update_time, and logic for composite keys) and annotation hints.
- Use Case: When generating DO files from a SQL table, apply these mappings to ensure correct Java types and nullability.
Quick Start
Use this skill during DO file generation from SQL definitions. For example, mapping a table with columns id int, amount decimal(10,2), name varchar(255) results in fields: id -> Integer, amount -> BigDecimal, name -> String.