Change in enhanced classes implemented interface from PersistenceCapable to Persistable from version 4.x


mayank.chawla@...
 

Hello,

I am migrating from 2.x to 5.x and all my old code is around javax.jdo.spi.PersistenceCapable(types casting from object type etc). But now when I enhanced my classes using latest version, I can see all enchanced classes implement Persistable interface. I wanted to know - do I have to refactor code based on new interface - Persistable or is there any other way to approach this.

Thanks.


Andy
 
Edited

Refactor what code? Why are you making explicit reference to "PersistenceCapable" in the first place? It has never been advisable to use an internal interface (which is what it is when part of the JDO API). If you are making explicit reference to it then obviously you have to change your code, since DN enhancement contract in v4.0+ is using our own contract, as the migration notes say.