如何将注释的参数值设置为来自属性文件?

时间:2019-04-25 13:25:02

标签: jpa spring-data-jpa jpa-2.0

我想将name@Table批注的@Column参数值设置为来自application.properties文件:

@Entity
@Table(name = "GACCCODE")
public class Comptable {

    @Id
    @Column(name = "ACCCOD_0")
    private String acccod;

    @Column(name = "COA_0")
    private String coa;

    ...

}

该怎么做?

0 个答案:

没有答案