如何在我的实体jpa中设置外键名称。
这是名称生成FK3jrphg3ll698ta68xi074uesj
的示例。
这不是名字友好,我希望可以为她设置友好名称。
@ManyToOne
@JoinColumn(name="est_id")
@JsonIgnoreProperties
private State state;
来自hibernate注释的@ForeignKey已弃用,而且javax.persistence没有此选项(我找不到)
我正在使用spring-boot version 2.0.0.RELEASE