Solved issue: java.lang.Long cannot be cast to java.lang.Integer JPA
GAE, DataNucleus and enumeration. Switched from Integer to Long type.