[英]JPA Hibernate Composite Id
I need to retrieve data from two tables.我需要从两个表中检索数据。 Tab1 and Tab2.
Tab1 和 Tab2。
Tab1 has these columns :- tabId(Foreign key with Tab2.tabId)(Primary Key), tabType(Primary Key), tabAdd(Primary Key), tabUser Tab1 有这些列:- tabId(Foreign key with Tab2.tabId)(Primary Key), tabType(Primary Key), tabAdd(Primary Key), tabUser
Tab2 has these columns :- tabId(Primary Key), location, name, description. Tab2 有这些列:- tabId(主键)、位置、名称、描述。
Really appreciate quick help!!真的很感谢快速帮助!!
Maybe you should edit the post and show us DB diagram because your description isn't clear.也许您应该编辑帖子并向我们展示数据库图,因为您的描述不清楚。 I think if we should have more data :) you have 3 PK on tab1?
我想我们是否应该有更多的数据:) 你在 tab1 上有 3 个 PK? Which relationship is between them?
他们之间是什么关系? Greetings :)
你好 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.