GWT 2.4.0 RequestFactory polymorphism

后端 未结 1 1251
余生分开走
余生分开走 2021-02-10 00:36

Does GWT 2.4 support this case:

@Entity class MyBase {...}
@Entity class MyChild1 extends MyBase {...}
@Entity class MyChild2 extends MyBase {...}
...
@ProxyFor(         


        
相关标签:
1条回答
  • 2021-02-10 01:06

    Fixed it with @ExtraTypes:

    @Service(ArticleBase.class)
    @ExtraTypes({MyChild1Proxy.class, MyChild2Proxy.class})
    public interface MyBaseRequest extends RequestContext {
        Request<MyBaseProxy> getStuff(); // MyChild1 here
    }
    
    0 讨论(0)
提交回复
热议问题