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
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 > On Jun 20, 2016, at 3:24 PM, Frederic Gilbart wrote: > > Hi all

RE: UUID as primary key

2016-06-20 Thread Frederic Gilbart
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 the Tutorial code to add a new class org.apache.cayenne.tutorial.persistent.Auditable with has some basic properties, then u