Rechercher un changement de comportement de la méthode OpenJPAEntityManager detach(T pc)

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é. La nouvelle signature de méthode renvoie une void alors que openJPA 1.x a renvoyé une valeur générique <T> T . OpenJPA a ajouté la nouvelle méthode detachCopy(T pc) pour conserver le comportement existant.

Un correctif automatisé modifiera le detach() méthode à detachCopy() .

Pour plus d'informations, voir :