[Transient] metadata tag
Escrito el 30/10/2006 por Xavi Beumala
Sometimes when implementing VO's, comes in hand to declare some properties which aren't mapped server side.
For example, imagine the following client side class:
<pre>
package com.mif.vos {
[RemoteClass(alias="com.mif.vos.DomainVO")]
public class DomainVO {
public var list:Array;
private var _list:ArrayCollection;
[Transient]
public function get listAC ():ArrayCollection
{
if (_list == null)
{
_list = new ArrayCollection (list);
}
return _list;
}
public function set listAC (listAC:ArrayCollection):void
{
this._list = listAC;
}
}
}
</pre>
If you don't want listAC property to be serialized across de wire, the only thing you have to do is add the [Transient] metatag. This way DomainVO serialized objects will only have the list property.
Permalink
Comments (444)