[Simple-support] Serialize with object validation
Brought to you by:
niallg
|
From: Anton H. <ant...@gm...> - 2013-05-08 13:05:31
|
Hello,
I have question about validation serialization process.
I've declared :
@ElementList
private List<BaseObject> list;
list is queue of BaseObjects, where BaseObject is defined this way :
@Root
class BaseObject
{
public boolean canBeSaved;
...
}
Some objects in queue have field canBeSaved set to true, some to false.
Now, I don't want to save objects with canBeSave==false (they are only
temporary).
And I don't want to split them into two Lists(temporary and permanent).
Please, is there any way how to do this?
I have found that something similar is possible with deserialization, but
I'm stuck with backward process
Thank you
Anton Hornacek
|