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: Any ROP users?

2022-10-24 Thread Henrique Gomes
Hi Andrus, I can confirm that removing the serialisation support from the templates solved the reported vulnerability. Also no behaviour change was detected, as expected. Thanks for your help in clarifying that the code was not needed. Cheers, HG > On 4 Oct 2022, at 19:00, Andrus Adamchik wr

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