I'm currently using the Jibx maven plugin to codegen Java POJOS from a defined schema. The code gets generated fine, but what I want is for the toString method to be generated too. As I am round tripping from Schema to Classes I cant manually define the toString method as this will get overwritten when I re-generate. And I don;t want to create a wrapper class just for the toString methods.
Is there a flag option or something somewhere to say I want the toString method to be generated??? I've looked at the Jibx documentation online and could not find a straight simple answer to the above.
Any help would be very much appreciated.
thanks so much
user983022,
There is no automatic way to add code to a generated java clas in JiBX, but...
You have several options to solve this problem:
I Hope this helps!
Don
JiBX Maven plugin author