此功能已在JPA 2.0中添加。只需致电:
Object id = entityManagerFactory.getPersistenceUnitUtil().getIdentifier(entity);
上一篇 什么是序列号ID?
下一篇 在Android中使用KeyStore存储密钥
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号