[
https://issues.apache.org/jira/browse/CAY-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arseni Bulatski updated CAY-2509:
---------------------------------
Description:
Lazily faulted to-one and to-many relationships can return not updated data.
This happened because of getting data from snapshot cache instead of database.
Case:
1) Create context
2) Select Artist from database, then get artist's paintings
3) direct update painting table
4) Create new context
5) Do step 2
Painting from step 5 is not updated.
was:
Lazily faulted to-one and to-many relationships can return not updated data.
This happened because of getting data from snapshot cache instead of database.
Case:
1) Create context
2) Select Artist from database, than get artist's paintings
3) direct update painting (don't use commitChanges)
4) Create new context
5) Do step 2
Painting from step 5 is not updated.
> Lazily faulted relationships can return not updated data
> --------------------------------------------------------
>
> Key: CAY-2509
> URL: https://issues.apache.org/jira/browse/CAY-2509
> Project: Cayenne
> Issue Type: Bug
> Components: Core Library
> Affects Versions: 4.2.M1
> Reporter: Arseni Bulatski
> Priority: Major
> Fix For: 4.2.M1
>
>
> Lazily faulted to-one and to-many relationships can return not updated data.
> This happened because of getting data from snapshot cache instead of database.
> Case:
> 1) Create context
> 2) Select Artist from database, then get artist's paintings
> 3) direct update painting table
> 4) Create new context
> 5) Do step 2
> Painting from step 5 is not updated.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)