How to generate serialVersionUID programmatically in Java?
I am working on a project that generates Java files. I'd like to be able
to optionally add the serialVersionUID as you would with the serialver
tool.
Is there a way to do this when I generate the Java code, or will I need to
ask the user of the tool to provide UIDs manually? To be clear, I'm not
looking to do this automatically through Eclipse or the serialver tool,
but to do it via Java itself.
No comments:
Post a Comment