Richard Berger <richardlandis@...> writes:

> > > Hi Richard,
> >
> > > It looks like AbstractRequestContext.processReturnRecord() fires an
> > > EntityProxyChange event only when the version has changed. See lines
> > > 270-285 here:
> >
> > >http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/...
> >
> > > The answer to your question likely lies in the implementation of
> > > hasVersionChanged() in the same file. Perhaps you could set a
> > > breakpoint on the server or client to confirm that the version has
> > > indeed changed for the entity?
> >
> > > HTH,
> > > /dmc


I hope my small note will help.
To increment the version I added method to entity class with two JPA 
annotations:

    @PrePersist
    @PreUpdate
    public void incrementVersion() {
        this.version++;
    }

JPA EntityManager.merge() + Annotations are awesome.

--
Viacheslav Dobromyslov



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

Reply via email to