You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Kevin Menard (JIRA)" <ji...@apache.org> on 2009/04/15 23:49:14 UTC

[jira] Created: (CAY-1209) DbLoader does not remove meaningful PKs if overwrite is true and meaningful PKs is false.

DbLoader does not remove meaningful PKs if overwrite is true and meaningful PKs is false.
-----------------------------------------------------------------------------------------

                 Key: CAY-1209
                 URL: https://issues.apache.org/jira/browse/CAY-1209
             Project: Cayenne
          Issue Type: Bug
          Components: Cayenne Core Library
    Affects Versions: 3.0M5
            Reporter: Kevin Menard
            Priority: Minor


There seems to be a problem with DbLoader and dealing with its meaningfulPk attribute.

If:

- ObjEntity doesn't exist and meaningfulPk is true, the PK is mapped.
- ObjEntity doesn't exist and meaningfulPk is false, the PK is not mapped.
- ObjEntity exists, has PK mapped, overwrite existing entities is true, and meaningfulPk is false, the PK remains mapped.

The third one is problematic.  Since the entity is supposed to be overwritten, the expected behavior is that of the second bullet point.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.