怎么用hibernate取得数据库表有那些主键
直接用一般的JDBC查询时,可用ResultSet rs = connA.getMetaData().getPrimaryKeys(null, null, table_name),可取得指定表的那结字段是主键,那么换用hibernate怎么做???