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

2016-06-25 Thread Andrus Adamchik
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 > > > > > > > > > >

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

2016-06-22 Thread Frederic Gilbart
ic Gilbart Envoyé : lundi 20 juin 2016 21:25 À : 'user@cayenne.apache.org' Objet : RE: UUID as primary key Hi all, After further tests I think the problem is not relative to UUID nor primary keys but to properties from super classes that seem never persisted. I've updated t

Re: UUID as primary key

2016-06-20 Thread Andrus Adamchik
oject, 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@cayenne.apache.org'

RE: UUID as primary key

2016-06-20 Thread Frederic Gilbart
yenne.apache.org' Objet : UUID as primary key Hi all, I'm looking for some information to use java.util.UUID as a «Meaningful Primary Key » as stated in https://cayenne.apache.org/docs/3.0/primary-key-generation.html . I've planned to use a Listener onPreUpdate to init

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