GWT 2.4.0 RequestFactory polymorphism

后端 未结 1 1252
余生分开走
余生分开走 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 getStuff(); // MyChild1 here
    }
    

    0 讨论(0)
提交回复
热议问题