avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ziemer, Tom" <tom.zie...@wirecard.com>
Subject IDL annotation question
Date Tue, 21 Jul 2015 11:15:41 GMT
Hi everybody,

I am currently trying to add 3rd-party annotations to my avro-generated files. Looking at
https://issues.apache.org/jira/browse/AVRO-1186
this should be already implemented and working.

When adding javaannotation as property to my avsc files, it is picked up nicely and ends up
in the corresponding java class, yet when I add it to my IDL like

protocol Foo {
    record Bar {
         @javaAnnotation("org.hibernate.validator.constraints.NotBlank")
         union {null, string} baz  = null;
    }
}

the annotation (though not really sensible here) is not added to the generated class. What
am I missing?

avro-version: 1.7.7
classes are generated with avro-maven-plugin 1.7.7

Regards,
Tom



Mime
View raw message