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).
精彩评论