Archived

This forum has been archived. Please start a new discussion on GitHub.

Slice2Java code generation

Hi,

Please can you consider these improvements for the slice2java codegen:
1. For structs and classes with data properties, generated classes implement java.io.Serialization. This makes it possible to use these classes/object instances with other java components (e.g. distributed caches such as ehcache/coherence).
2. For structs and classes with data properties, provide implementations of the hashcode() and equals() methods. This makes the classes directly usable in hashsets, for example.

Thoughts on the above are most welcome.

Thanks,
Jitendra

Comments

  • mes
    mes California
    Hi,

    Thanks for your suggestions. We'll consider them for a future release.

    Take care,
    - Mark