此规则标记方法 org.apache.openjpa.persistence。OpenJPAEntityManager.detach(T pc) 和 org.apache.openjpa.persistence。OpenJPAEntityManagerSPI.detach(T pc)
此方法在 OpenJPA 1.x 中作为规范的其他功能部件而存在。 该方法已添加至 JPA 2.0 规范。 然而,方法特征符已更改。 新方法特征符返回空,而 openJPA 1.x 返回通用 <T> T 对象。 OpenJPA 添加了新方法 detachCopy(T pc) 以保留现有行为。
此快速修订会将 detach() 方法更改为 detachCopy()。
有关更多信息,请参阅: