You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2007/06/26 23:28:28 UTC
[JIRA] Created: (CAY-811) Meaningful identity columns: user
provided PK values are ignored
Meaningful identity columns: user provided PK values are ignored
----------------------------------------------------------------
Key: CAY-811
URL: https://issues.apache.org/cayenne/browse/CAY-811
Project: Cayenne
Issue Type: Bug
Components: Cayenne Core Library
Affects Versions: 1.2 [STABLE], 2.0 [STABLE], 3.0
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Priority: Minor
Fix For: 3.0
I found it when testing on 3.0, although I suspect this is a problem on 2.0 and 1.2 as well. When a meaningful PK is set by the user and is also mapped as a DB-generated PK, Cayenne incorrectly overrides user value. There are two places where this must be fixed:
1. DataDomainInsertBucket (I will commit the fix shortly)
2. InsertBatchQueryBuilder (this is a bit more hairy - as the batch syntax will be affected depending on whether user provided a value or not)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.