cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Writing to an unmapped property
Date Wed, 12 Sep 2012 11:56:33 GMT

The API says that readNestedProperty supports both mapped and unmapped
properties. I assume this means one can ask for eg: "db:SOME_FIELD".

Is there a way to set/write to an unmapped property ?

For eg. if I have a table with fields:  A, B and C
And I only want A and B visible in my object entity.
C is a "background/admin" field, but it may not be null and is variable
like a date, user name, etc.

So now i'm trying to set C in a pre-persist / pre-update callback ?
Can this be done or must I expose C through the object entity ?


View raw message