0
我想一个@javax.annotation.Generated
注释添加到从XSD由JAXB生成的所有我的班。添加@Generated注释JAXB生成的类
我使用Maven的JAXB2-插件和binding.xjb文件生成源。我看到的是,JAXB插件JAXB2-基础-注释应该做的伎俩。但是,所有我能找到的是注释添加到特定的类的实例。像这样的:
<jaxb:bindings schemaLocation="csw/2.0.2/CSW-discovery.xsd" node="/xs:schema">
<jaxb:bindings node="xs:complexType[@name='GetRecordsType']">
<annox:annotate>
<annox:annotate annox:class="javax.xml.bind.annotation.XmlRootElement" name="GetRecordsType" />
</annox:annotate>
</jaxb:bindings>
我如何能做到这一点,我的每个生成的文件?这可能吗?