idea中hibernate反向生成类没有外键属性
在生成实体类的弹框中勾选 “show default relationship”
如果希望实现双向多对一 一对多 勾选 “show default relationship” 并取消“prefer primitive types”

相关文章: