[
https://issues.apache.org/jira/browse/CAY-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrus Adamchik updated CAY-1547:
---------------------------------
Description: Currently UuidRelationships are read-only. There's no easy way
to establish them in the code, especially if both from and to objects are NEW
and PK is not known. So I am going to add some handler code that does all the
backend magic. (maybe someday we make UuidRelationship a first class citizen in
Cayenne and this will be done differently, for now it belongs in
cayenne-lifecycle). (was: Currently UuidRelationships are read-only. There's
no easy way to establish them in the code, especially if both from and to
objects are NEW and PK is not known. So I am going to add some handler code
that does all the backend magic. (maybe someday we make UuidRelationship a
first class citizen in Cayenne and this will be done differently, for now it
belongs in cayenne-lifecycle).
One possible subtask of this task is a PkQuery - a special query to reserve a
primary key for the object before commit. This will simplify the process of
transactional saving UUID "FK" , and seems like a useful utility in general.)
> cayenne-lifecycle: support for setting UuidRelationships
> --------------------------------------------------------
>
> Key: CAY-1547
> URL: https://issues.apache.org/jira/browse/CAY-1547
> Project: Cayenne
> Issue Type: New Feature
> Components: Core Library
> Affects Versions: 3.1M2
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
>
> Currently UuidRelationships are read-only. There's no easy way to establish
> them in the code, especially if both from and to objects are NEW and PK is
> not known. So I am going to add some handler code that does all the backend
> magic. (maybe someday we make UuidRelationship a first class citizen in
> Cayenne and this will be done differently, for now it belongs in
> cayenne-lifecycle).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira