simonk-wh commented on code in PR #1908:
URL: https://github.com/apache/avro/pull/1908#discussion_r1020206055
##########
lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/AbstractAvroMojo.java:
##########
@@ -192,6 +192,14 @@ public abstract class AbstractAvroMojo extends
AbstractMojo {
*/
protected boolean enableDecimalLogicalType;
+ /**
+ * Transformations to be applied when converting an Avro namespace to a Java
+ * package-name. Values are of format "namespacePrefix->packageName"
+ *
+ * @parameter property="namespaceMappings"
+ */
+ protected String[] namespaceMappings = new String[0];
Review Comment:
I have created an alternative branch/pull-request with the "nested
configuration object" approach (rather than a simple string with form
"namespace->packagename". It is more elegant to use, but significantly more
code. Please let me know what you think.
See: https://github.com/apache/avro/pull/1955
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]