as3-spod
as3-spod copied to clipboard
Transient attributes
Hi there,
Does as3-spod have support for transient attributes in domain objects? I was hoping I could just go:
[Transient] public var dontSaveThisToDb:UnpersistableType;
Or is there some other way of getting as3-spod to ignore certain attributes?
Thanks Josh
Oh interesting, I've not thought about this. I shall have a think about this (either Transient or Ignore tag), if you get to it before me - just request a pull request.
I was going to implement something like this: [Type(persist="false")]
The default value would be true, but if you don't want to persist this data into the database, just set it to false.
What you guys think?
MozartPetter's approach sound good, because other systems use Transient - I think FlexXB does, IIRC. So would avoid possibility of a conflict.
Yeap, looks good to me.