UUIDs

2024-08-23 Thread Andrus Adamchik
I am actually glad we went on a tangent and started discussing UUIDs. I just ran into a use-case of an idempotent PUT API endpoint that takes a mix of new and existing objects, and there's no natural key in the entity to check whether new (PK-less) objects are already in DB (so that we UPDATE th

Re: UUIDs

2024-08-23 Thread Michael Gentry
Hi Andrus, Part of what I meant by adding UUID support to Cayenne was to include UUID as a PK mechanism in Cayenne modeler and provide a corresponding PK generator class. Nothing currently stops you from manually setting a UUID yourself, but including support in the modeler would be a more natural