Re: [Simple-support] Serialize with object validation
Brought to you by:
niallg
|
From: Niall G. - Y. <Nia...@yi...> - 2013-05-08 23:27:24
|
Take a look at the @Persist and @Commit annotations. If this is not suitable then you can always write a Converter.
From: Anton Hornacek [mailto:ant...@gm...]
Sent: Wednesday, 8 May 2013 11:05 PM
To: sim...@li...
Subject: [Simple-support] Serialize with object validation
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
|