[help] simple non persistent attribut

3 posts / 0 new
Last post
atao
Offline
Joined: 10/15/2008
[help] simple non persistent attribut

Vincent

What is the simplest way to define a non persistent attribute for an entity. With just a getter and a setter.

Regards

Pierre

vvandens
Offline
Joined: 05/29/2008
[help] simple non persistent attribut

Hi Pierre,

You can just use an extension (e.g. EmployeeExtension, which is stateful). Implement the accessors in the extension, declare the property as computed using this extension and mark it "delegateWritable=true" so that Jspresso does not consider it as a read-only computed property.

 

Hope this helps,

Vincent

atao
Offline
Joined: 10/15/2008
[help] simple non persistent attribut

Vincent,

"delegateWritable=true"

The missing piece! Thanks.

Pierre