How can I force HyperJaxb to generate toString() method?

201 views Asked by At

I'm trying to generate Entity classess from xsd files using HyperJaxb3. It works fine but what I need is to have toString() method in those classes. What I get is only hashCode() and equals() methods. How can I convince HyperJaxb3 to generate toString() method too?

I would appreciate your help!

1

There are 1 answers

0
gadzix90 On BEST ANSWER

Ok, so I figured it out thanks to this url: https://wikis.oracle.com/display/GlassFish/Hyperjaxb3Configuration

I just added:

<args>
    <arg>-XtoString</arg>
</args>

inside the <configuration> tag of hyperjaxb3 in pom.xml of the maven project and that made it work!