Re: Modeler Types

2021-11-04 Thread Andrus Adamchik
Hi Tony, Support for non-standard SQL types was added in 4.2: https://lists.apache.org/thread/66nhvkzt1mqoh2h53h2x6sbx968kt2fy We are mapping those types on the DB side as JDBC type OTHER. On the Java type it is mapped as org.apache.cayenne.value.Json. Andrus > On Nov 4, 2021, at 6:34 PM, To

Re: Insertion order issue

2021-11-04 Thread Michael Gentry
Hi Anthonin, Perhaps put a @SortWeight(2) annotation [1] on your child entity? Also, you need to configure a different entity sorter: // Need WeightedAshwoodEntitySorter for @SortWeight to work. ModuleentitySorterModule = (binder) -> binder.bind(EntitySorter.class).to(WeightedAshwoodEntit

Modeler Types

2021-11-04 Thread Tony Giaccone
So Postgres supports a json type in their database. Clearly this isn't a type that's generally available, but it would be nice if the modeler supported the ability to add types, so in this way you could support the unusual types, that sometimes need to be used. Clearly I have no idea how hard this

Insertion order issue

2021-11-04 Thread Lize Anthonin (OceanOPS)
Hi, I am using Cayenne in a web app (through AgRest, but this is purely cayenne related, well I think so) that contains one service through a POST method. Basically, I submit a JSON body with multiple object in it, pass it through the service method defined below, process each object and for eac