May be the worst mybatis generator.
Entrance: Code > MybatisGenerator
- You can use your own ftl template to generate custom code Temp select button choose your own ftl
- Contains 3 Default ftl (1) DO (2) Mapper (3) Mapper.xml
Custom ftl template contains some variable:
- Package you can use (bind + Package) represent acutal package directory, such as DOPackage, MapperPackage, all depends on bind you defined
- columns all column which have name、columnName、javaType、comment attributes
- hasDate exist any Date type column
- hasDecimal exist any Decimal type column
- pk primary key of table, contains name、columnName、javaType attributes
- table table name