数据库的字段要求是拼音缩写,可是这太难理解。想把如下的BYLLL换成容易理解的英文单词,目前数据库内部不允许更改字段名,能在Java层面更改变量名而不更改字段名吗?
@Entity
@Table(name = "DoctorInfoCenter")
public class InfoCenter extends AbstractVO {
private static final long serialVersionUID = 1L;
private Long BYLLL;
public Long getBYLLL() {
return BYLLL;
}
public void setBYLLL(Long BYLLL) {
this.BYLLL = BYLLL;
}
}
I thought of a way,
@Column(name = "adress", length = 800)
just add this comment