Cette règle marque la méthode org.apache.openjpa.persistence.OpenJPAEntityManager.detach(T pc) et org.apache.openjpa.persistence.OpenJPAEntityManagerSPI.detach(T pc)
Cette méthode existait dans OpenJPA 1.x en tant que fonction additionnelle à la spécification. La méthode a été ajoutée aux spécifications JPA 2.0. La signature de méthode a cependant changé. Dans sa nouvelle signature, la méthode retourne void, alors que dans openJPA 1.x, elle retournait un objet <T> T générique. OpenJPA a ajouté la nouvelle méthode detachCopy(T pc) pour conserver le comportement existant.
Le correctif rapide remplace la méthode detach() par detachCopy().
Pour plus d'informations, voir :