Just realized... Query always returning NULL values for enum from the database, altough database has values.
Read in other forum, enum always loaded as Lazy, need to make it EAGER to get the values.
http://openjpa.208410.n2.nabble.com/OpenJPA-MySQL-Environment-NamedQuery-always-returns-null-for-Enumerated-column-types-td216529.html
I've tried this
but NO luck
Switched to Annotation, and saw the real error in exception stack trace.
error is Query refering to enum values instead of variables.
fixed it and switched back to XML elemenets.
Thanks!