大家好,请教一下,pojo能不能默认java驼峰,数据库蛇底。因为数据库字段绝大部分人的习惯是蛇底,Java如果写驼峰就不能自动对应起来。还得加@Column(hump = true)
,比如下面这样,太冗余了。
```js\n
@Id
private long id;
@Column(hump = true)
private String userName;
@Column
private String password;
@Column(hump = true)
private String jsessionId;
@Column(hump = true)
private String apiToken;
@Column(hump = true)
private String loginToken;
@Column
private String url;
@Column
private int status;
@Column(hump = true)
private LocalDateTime createDate;
@Column(hump = true)
private LocalDateTime updateDate;
\n```