开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜