[
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