Peter Friese

Developer Advocate / Mobile Developer / Public Speaker

Serial Version UIDs

In my current project, we’re struggling with serial version UIDs. Here are some links that shed a little light on the whole topic. Portland Pattern Repository’s Wiki states that all serializable classes should have a serial version UID assigned by the developer. An interesting observation ist that different compilers produce differnt UIDs for the same class.

SerialVer is a Sourceforge hosted project that provides ANT tasks for generating serial version UIDs.

The AndroMDA Hibernate Cartridge is currently lacking support for serial version UIDs, but I have filed an issue and hope it will be fixed soon.