【发布时间】:2017-07-26 17:55:02
【问题描述】:
例如。
SQL:
CREATE TABLE `collect` (
`travel_id` int NOT NULL COMMENT 'travel id',
`description` varchar(64) COMMENT 'description',
`creat_time` timestamp DEFAULT CURRENT_TIMESTAMP COMMENT 'creat time',
PRIMARY KEY (`travel_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='collect';
生成的POJO如下。
/**
* collect
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.2"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Collect implements Serializable {
private Integer travelId;
private String description;
private LocalDateTime creatTime;
...
}
我想要的POJO应该是这样的。
例如:
private Integer travelId //trave_lId
或
/* trave_lId */
private Integer travelId
我的代码生成器:
.withPojos(true)
.withDaos(true)
.withSpringAnnotations(true)
.withJavaTimeTypes(true)
POJO 字段没有对应的注释。 我该怎么办?
【问题讨论】: