highsource / jaxb2-basics

Useful plugins and tools for JAXB2.
BSD 2-Clause "Simplified" License
109 stars 54 forks source link

toString plugin not taking it -XtoString-toStringStrategyClass custom strategy class #57

Closed highsource closed 8 years ago

highsource commented 8 years ago

http://jira.highsource.org/browse/JIIB-51

AntonSaburov commented 8 years ago

It works so (I had to enter TWO strings):

-XtoString -XtoString-toStringStrategyClass=org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy
highsource commented 8 years ago

This is by design. One option is to turn on the plugin, the other to provide configuration. You still need -XtoString in any case.

AntonSaburov commented 8 years ago

Thank you. But documentation is not clear. I spent much time to find out solution

highsource commented 8 years ago

Added documentation: https://github.com/highsource/jaxb2-basics/wiki/JAXB2-ToString-Plugin

cstenkes commented 5 years ago

It would be nice to fix this issues regarding to generate override on the mentioned methods, otherwise the generated code is full of warning. In my case after generating 1854 warnings occurred in the code which is not really nice, and break on the QA filters of the projects.