Re: primary key in transaction

2017-11-26 Thread Andrus Adamchik
Hi Amedeo, I assume you want to know the PK before commit (as otherwise Cayenne would handle that for you transparently). In which case you have two options: 1. Map a meaningful PK, and just call a setter on the object with whatever meaningful value you might have. 2. Use PkGenerator and set t

Problem using to-many relationship on where clause

2017-11-26 Thread Juan Manuel Diaz Lara
I am using 4.0.M5, previously this query worked as I expected: ObjectSelect q = ObjectSelect.query(Product.class)                  .where(Product.EXISTENCIAS_CORPORATIVAS.dot(StockCurrentCorporativo.UNITS).gt(0.0))     .and(Product.CODE.like("USBVGA");