Closed sherl0cks closed 6 years ago
have you tried ?
I believe it should kind of work
I'm not saying it should work, but codegen, I believe it should be possible to support this
@vietj yeap I have tried, I seem to be hitting this exception https://github.com/vert-x3/vertx-codegen/blob/master/src/main/java/io/vertx/codegen/ClassModel.java#L601
I think it should be support if the base repository class is not annotated with @VertxGen
.
can you open an issue on the codegen project with this reproducer ?
it would be great to support such common pattern when building code generated interfaces.
closing this issue
I'd like to do something similar to what I can do with Spring Data, where I can declare an interface with generics and then extend that interface with the appropriate type information and vert.x service proxies has the smarts to generate the appropriate information behind the scenes
For example, I'd like to use the following code without rewriting the same interface for every repository, which I anticipate to have several: