Use a ValueProxy instead of EntityProxy for that specific case; or possibly 
use a distinct EntityProxy with a Locator that uses both the real ID and 
version in the ID (in getId and find, IIRC)

On Friday, April 12, 2013 10:12:51 AM UTC+2, stigrv wrote:
>
> I've run into the same problem. Did you find a solution?
>
> kl. 18:10:17 UTC+1 søndag 20. januar 2013 skrev Jeremy Raymond følgende:
>>
>> I'm using Hibernate envers to keep a history of my entities. To display 
>> the history of an entity I want to transfer a list of different versions of 
>> the entity to the client. When I return a list of different versions of the 
>> same entity through Request Factory I get the correct number of items 
>> client side, but they are all the same. I don't get the different versions 
>> of the entity. It looks like RF is detecting that all the entities in the 
>> list have the same ID, so it's only transferring the first item to the 
>> client then duplicating it in the list client side. If I fudge the entity 
>> IDs in the list so that they are all different all items come across the 
>> the client.
>>
>> Is there a better way to the different versions of the entity to come 
>> down to the client in a single list other than fudging the IDs?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to