3 ways to serialize Java Enums

This article shows you best practice for serializing Java enums to a file or database (via Hibernate, JPA). It discusses three ways to serialize enums with code examples, the pros and cons of each way and also recommends the best way. You should know this if you are serializing an Object with an enum field to a file or mapping a POJO to a database table using technologies like Hibernate or JPA.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes