Hi,
I have tried mapping an ObjEntity to to DBEntity to allow me to use primary
keys in an expression. This works for the expression but creates a new
problem. My primary key is an identity hence it is generated by the database
(and marked as isGenerated=true in the mapping file). Unfortunately mapping
the ObjEntity to the DBEntity makes Cayenne think I have to set primary key
when creating a new record in the database.
Is this a bug?
As an alternative I tried using the db: prefix but this didn't seem to work
across relationships.
Is there any way to create expressions using primary keys?
Cheers,
Dave
This archive was generated by hypermail 2.0.0 : Mon Feb 06 2006 - 04:06:00 EST