【问题标题】:how to get the table2 information using hibernate concept如何使用休眠概念获取table2信息
【发布时间】:2023-03-28 07:08:02
【问题描述】:

我的数据库中有 2 个表

  • table1-->id、姓名、地址

  • table2--> id, tb1id

如何使用hibernate框架获取table2信息?

【问题讨论】:

标签: java hibernate


【解决方案1】:

你可以在 spring/hibernate 中使用ResultsetMetaData。

检查这个答案..

Use annotations for getting ResultsetMetaData.

谢谢..

【讨论】:

  • 我可以在 Hibernate 的继承映射概念中使用 Table per class Heirarchy rleation 来获取 table2 信息吗
猜你喜欢
  • 1970-01-01
  • 2019-05-19
  • 2013-08-07
  • 1970-01-01
  • 1970-01-01
  • 2015-04-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多