as3-spod icon indicating copy to clipboard operation
as3-spod copied to clipboard

Transient attributes

Open micapam opened this issue 13 years ago • 4 comments

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

micapam avatar Feb 09 '12 05:02 micapam

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.

stickupkid avatar Feb 09 '12 09:02 stickupkid

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?

mokkun avatar Feb 09 '12 19:02 mokkun

MozartPetter's approach sound good, because other systems use Transient - I think FlexXB does, IIRC. So would avoid possibility of a conflict.

micapam avatar Feb 09 '12 22:02 micapam

Yeap, looks good to me.

stickupkid avatar Feb 10 '12 09:02 stickupkid