On Sep 15, 5:52 pm, Thomas Broyer <[email protected]> wrote:
> You should make one sub-interface of AValueProxy per type of
> AGenericEntityProxy that you'd use for its T type parameter; remove the type
> parameter (making AValueProxy no longer generic), and using @ExtraTypes (GWT
> 2.4 onwards) for polymorphism, listing the sub-interfaces you previously
> created.

Hello again Thomas,

I tried to do as you suggest, but I'm having a hard time understanding
how this ExtraTypes is supposed to be used. The RequestFactory doc
page doesn't say much...

What I'm trying to make is a generic widget to deal with Hibernate
Envers audited entities. On my server side, I have a type Revision<T
extends AuditedEntity>, where AuditedEntity is an abstract class
extended by every entity which is supposed to be audited by Envers.

So, as you suggested, I created an interface RevisionProxy which is a
@ProxyFor(Revision.class). I also created an interface
EntityARevisionProxy which is supposed to be a proxy for
Revision<EntityA>, so I added @ProxyFor(Revision.class) as well. This
interface extends RevisionProxy.

Now, you say that I should add
@ExtraTypes({EntityARevisionProxy.class}) to RevisionProxy, is that
it? That didn't work, I got a stack overflow during compilation time.
The stack overflow goes away if I remove the @ProxyFor from
EntityARevisionProxy, but then the compiler complains about this
@ProxyFor absence.

As you can see, I'm lost here... can you say what I'm doing wrong, or
point me to an example I could follow?

Thank you in advance

-- 
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