Serialize Enum Coherence Example

Serialize Enum Coherence Example

Serializing Enum on Oracle coherence is little confusing because coherence does not supports Enum. So how will you serialize and deserialize data to Oracle coherence? In fact it’s very easy and you can serialize Enum as String and while deserialize it convert it back to Enum. Please see example below:

  • EnumTest.java:

  • EnumTestModel.java:

  • EnumTestModelSerializer.java:

Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *