You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2011/03/01 16:43:37 UTC

[jira] Created: (CAY-1548) PkQuery - a query to reserve a PK for a given object before commit.

PkQuery - a query to reserve a PK for a given object before commit.
-------------------------------------------------------------------

                 Key: CAY-1548
                 URL: https://issues.apache.org/jira/browse/CAY-1548
             Project: Cayenne
          Issue Type: Sub-task
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
            Priority: Minor


Will create a new query - PkQuery, that will be used to reserve a PK for a given object before commit. It should return a List<Long> with a single PK. Not sure if there is a point in batching it (fetch multiple PKs in one shot?) Won't do batching initially.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (CAY-1548) PkQuery - a query to reserve a PK for a given object before commit.

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001416#comment-13001416 ] 

Andrus Adamchik edited comment on CAY-1548 at 3/2/11 1:44 PM:
--------------------------------------------------------------

This approach appears to be a dead end. In particular PkQuery can not be combined with entities with "generated" PK, as "generated" PK bypasses Cayenne PkGenerator. Still attaching a working PkQuery patch with a single simple test. Maybe somebody finds it useful.

      was (Author: andrus):
    This approach appears to be a dead end. In particular PkQuery can not be combined with entities with "generated" PK, as "generated" PK bypasses Cayenne PkGenerator. 
  
> PkQuery - a query to reserve a PK for a given object before commit.
> -------------------------------------------------------------------
>
>                 Key: CAY-1548
>                 URL: https://issues.apache.org/jira/browse/CAY-1548
>             Project: Cayenne
>          Issue Type: Sub-task
>          Components: Core Library
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>         Attachments: 0001-CAY-1548-PkQuery-a-query-to-reserve-a-PK-for-a-given.patch
>
>
> Will create a new query - PkQuery, that will be used to reserve a PK for a given object before commit. It should return a List<Long> with a single PK. Not sure if there is a point in batching it (fetch multiple PKs in one shot?) Won't do batching initially.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (CAY-1548) PkQuery - a query to reserve a PK for a given object before commit.

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1548.
--------------------------------

    Resolution: Won't Fix

This approach appears to be a dead end. In particular PkQuery can not be combined with entities with "generated" PK, as "generated" PK bypasses Cayenne PkGenerator. 

> PkQuery - a query to reserve a PK for a given object before commit.
> -------------------------------------------------------------------
>
>                 Key: CAY-1548
>                 URL: https://issues.apache.org/jira/browse/CAY-1548
>             Project: Cayenne
>          Issue Type: Sub-task
>          Components: Core Library
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>         Attachments: 0001-CAY-1548-PkQuery-a-query-to-reserve-a-PK-for-a-given.patch
>
>
> Will create a new query - PkQuery, that will be used to reserve a PK for a given object before commit. It should return a List<Long> with a single PK. Not sure if there is a point in batching it (fetch multiple PKs in one shot?) Won't do batching initially.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CAY-1548) PkQuery - a query to reserve a PK for a given object before commit.

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik updated CAY-1548:
---------------------------------

    Attachment: 0001-CAY-1548-PkQuery-a-query-to-reserve-a-PK-for-a-given.patch

> PkQuery - a query to reserve a PK for a given object before commit.
> -------------------------------------------------------------------
>
>                 Key: CAY-1548
>                 URL: https://issues.apache.org/jira/browse/CAY-1548
>             Project: Cayenne
>          Issue Type: Sub-task
>          Components: Core Library
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>         Attachments: 0001-CAY-1548-PkQuery-a-query-to-reserve-a-PK-for-a-given.patch
>
>
> Will create a new query - PkQuery, that will be used to reserve a PK for a given object before commit. It should return a List<Long> with a single PK. Not sure if there is a point in batching it (fetch multiple PKs in one shot?) Won't do batching initially.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira