Jump to content
McObject Forums
Sign in to follow this  
tsichevski

How to rename/remove a persistent class

Recommended Posts

tsichevski    0

I have a class with persistent instances. I need to rename or remove it it. I removed all persistent instances. But my application does not start trying to load by name the class registered with the now obsolete ClassDescriptor for this class. Is it possible to tolerate the situation the class can not be loaded somehow?

 

Regards,

Vladimir

Share this post


Link to post
Share on other sites
perstmco    0

It is not clear which version you are using: .Net or Java.
In Perst4.Net there is "perst.ignore.missed.classes" property allowing to ignore missed classes during load.
In the Java version, there is no such property and the only way to ignore missed classes is to define your own class loader.

Share this post


Link to post
Share on other sites
perstmco    0

Attached please find a patch that adds "perst.ignore.missed.classes" property to the Java version of Perst.
By setting this property, Perst will ignore classes that cannot be loaded.
But, any attempt to access an instance of such a class will cause an error.

ignore.patch

Edited by perstmco

Share this post


Link to post
Share on other sites
tsichevski    0

Hi perstmco,

When trying to access the ignore.patch, got this error page:

Sorry, there is a problem
The page you are trying to access is not available for your account.
Error code: 2C171/1
Contact Us

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×