开发者

Hibernate. How can we set name of PK/FK using annotations?

开发者 https://www.devze.com 2022-12-23 02:17 出处:网络
We have hibernate-based system and customer wants to get human-readable names of PK and FK. In our project we use annotated entity classes.

We have hibernate-based system and customer wants to get human-readable names of PK and FK. In our project we use annotated entity classes.

Is it renamin开发者_如何学Cg possible?


You may try @ForeignKey annotation (the Hibernate Annotation Docs show an example under the "Single Association related annotations" chapter).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号