Re: About ValueObjectType and Extended types and Collection based objects

2022-10-24 Thread Riccardo De Menna
Thank you Andrus, It makes sense. I was able to draft down a few classes sharing common behaviour (lists of objects separated by a character) that also define as an inner static class the suggested list wrapper. It’s nicely self contained and tidy. Yes… do think about either adding generic supp

Re: About ValueObjectType and Extended types and Collection based objects

2022-10-24 Thread Andrus Adamchik
Hi Riccardo, Indeed, ValueObjectType and ExtendedType are not generics-aware. Something we may need to think about and maybe add to Cayenne. What I would recommend in your situation is to map your attributes using custom lightweight wrapper types, one class per specific case. E.g. CommaSepara

About ValueObjectType and Extended types and Collection based objects

2022-10-23 Thread Riccardo De Menna
Hi all, I’m new to Cayenne and coming from the WebObjects world I’m trying to figure out how to adjust to the different environment. I was looking for some simple advice on how to do conversions for custom types. In particular, how would I go to save a collection based object. Let’s say I have