Re: Storing a column containing a JSON-object before save

2021-01-04 Thread Hugi Thordarson
Hi Andrus, happy new year! The stuff in 4.2 is really promising, look forward to trying it out. But yeah, going the ValueObjectType route for now :). Thanks! - hugi > On 4 Jan 2021, at 10:54, Andrus Adamchik wrote: > > Hi Hugi, > > FWIW, we are in the process of solving this exact problem

Re: Storing a column containing a JSON-object before save

2021-01-04 Thread Andrus Adamchik
Hi Hugi, FWIW, we are in the process of solving this exact problem of detecting changes in a complex value object for Cayenne's own JSON type available since 4.2: https://github.com/apache/cayenne/pull/443 In our case we had to do something even

Storing a column containing a JSON-object before save

2021-01-03 Thread Hugi Thordarson
Hi all, I've got a text column containing an object (or rather; an object structure) that's been serialized to a JSON string. I'm currently just re-serializing every time I change something—not very nice— so I'd like to do something…nicer. I.e. preferably, cayenne would know that something