[ 
https://issues.apache.org/jira/browse/OPENJPA-1758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved OPENJPA-1758.
--------------------------------------
    Resolution: Fixed

Already fixed on master: f56c4ca72 (OPENJPA-1776/1777, on master) delays the 
decision to flush, and the DistributionPolicy javadoc 
(openjpa-slice/.../DistributionPolicy.java:40-44) documents returning null and 
being called again before flush, as requested. Closing; please reopen if this 
still happens with OpenJPA 4.x.

> Allow instance to be distributed by its references' attributes
> --------------------------------------------------------------
>
>                 Key: OPENJPA-1758
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1758
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: slice
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>            Priority: Major
>
> The current distribution policy requires that target slice be determinable 
> when the managed instance instance enters the persistence context. However, 
> if the target slice for an instance X is determined by some attribute of Y 
> which is referred by X -- then at the time of invocation the target slice for 
> X may not be determinable. This improvement will allow the policy to return 
> null, so that the target slice can be determined when the instance is being 
> flushed to the datastore.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to