cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: Writing to an unmapped property
Date Wed, 12 Sep 2012 14:11:26 GMT
I think you have to expose C.  I believe "unmapped" means not defined in
modeler, like if you add some instance variables that are not persisted.

John

On Wed, Sep 12, 2012 at 6:56 AM, <dollj@xsinet.co.za> wrote:

> Hi
>
> 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 ?
>
> Thanks.
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message