Single Table Inheritance with Embeddable object

2018-02-16 Thread Frederic Gilbart
Hi all, I'm trying to use an Embeddable object with Single Table Inheritance pattern, but receive a < ObjAttribute 'X' has no DBAttribute mapping > for each overriding objects, at project validation. Embeddable is added to the parent abstract object. Reproduced in the BOOK example https://cay

RE: UUID as primary key >> class hierarchy persistence MappedSuperclass

2016-06-22 Thread Frederic Gilbart
rds, Fred -Original Message- Hi Frederic, Looking at the GitHub example, my recommendation is to avoid mapping Auditable in Cayenne as an entity. The easiest alternative is to make Auditable an interface and let appropriate entities implement it. Andrus De : Freder

RE: UUID as primary key

2016-06-20 Thread Frederic Gilbart
d. I'm not familiar with Cayenne : I like concepts in use and try to evaluate Cayenne for a project, I don't know if i use it poorly to get such results. Any help would be appreciated. Regards, Fred De : Frederic Gilbart Envoyé : dimanche 19 juin 2016 21:16 À : 'user@ca

UUID as primary key

2016-06-19 Thread Frederic Gilbart
Hi all, I'm looking for some information to use java.util.UUID as a as stated in https://cayenne.apache.org/docs/3.0/primary-key-generation.html . I've planned to use a Listener onPreUpdate to initialize the value. Every tries shown an Integer used in my VARCHAR column, and my UUID key unu