Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Default 无,原名称copy abc => abc Default = StrategyType("Default") // FirstLetterUpper 仅首字母大写 abc => Abc FirstLetterUpper = StrategyType("FirstLetterUpper") // UnderlineToCamel 下划线转驼峰(首字母小写) a_b_c => aBC UnderlineToCamel = StrategyType("UnderlineToCamel") // UnderlineToUpper 下划线转大写 a_b_c => ABC UnderlineToUpper = StrategyType("UnderlineToUpper") )
View Source
var JavaTypePKGs = map[string]string{
"BigDecimal": "java.math.BigDecimal",
"Date": "java.util.Date",
}
View Source
var MysqlToJavaTypes = map[string]string{
"bit": "Boolean",
"tinyint": "Byte",
"smallint": "Short",
"mediumint": "Integer",
"int": "Integer",
"integer": "Integer",
"bigint": "Long",
"float": "Float",
"double": "Double",
"decimal": "BigDecimal",
"date": "String",
"time": "String",
"year": "Short",
"datetime": "Date",
"timestamp": "Date",
"char": "String",
"varchar": "String",
"tinytext": "String",
"mediumtext": "String",
"text": "String",
"longtext": "String",
"tinyblob": "Byte[]",
"mediumblob": "Byte[]",
"blob": "Byte[]",
"longblob": "Byte[]",
}
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
OutputDir string
Verbose bool
IncludeTables []string
ExcludeTables []string
Global *GlobalConfiguration
Entity *EntityConfiguration
Mapper *MapperConfiguration
Repository *RepositoryConfiguration
XML *XMLConfiguration
}
type EntityConfiguration ¶
type EntityConfiguration struct {
PKG string
TableToEntityStrategy StrategyType
ColumnToFieldStrategy StrategyType
Comment bool
FieldComment bool
Lombok bool
LombokData bool
LombokNoArgsConstructor bool
LombokAllArgsConstructor bool
LombokBuilder bool
Implement bool
Implements []string
Extend bool
Extends string
EntityClassPrefixes []string
EntityClassSuffixes []string
EntityAnnotation bool
TableAnnotation bool
IdAnnotation bool
ColumnAnnotation bool
}
type GlobalConfiguration ¶
type MapperConfiguration ¶
type RepositoryConfiguration ¶
type StrategyType ¶
type StrategyType string
type XMLConfiguration ¶
Click to show internal directories.
Click to hide internal directories.