使用 Hibernate 多对多连接表中再添加一列
我如何映射这样的结构 数据库模型 http://imagepost.ru/images/186/oefb4v6.png 其中
class A{
Map<SomeEnum, B> foo;
}
foo 中的 key 是 a_ has _b 中 role 的表示?
谢谢!
How i can map structure like this
db model http://imagepost.ru/images/186/oefb4v6.png
into
class A{
Map<SomeEnum, B> foo;
}
where key in foo is representation of role in a_ has _b ?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想要表列中的枚举常量的名称:
If you want the name of the enum constants in your table column: