I'm using EclipseLink in Glassfish with my JavaEE application and have some java.util.Locale-columns in my model classes which I would like to store as String-columns in my database tables.

I know Hibernate ships it's conversion annotations and I can build my own converter implementing `org.eclipse.persistence.mappings.converters.Converter`. However, I have to depend on either of those libraries to use them.

Is there a way to get this functionality without directly depending on EclipseLink or Hibernate and staying with JPA spec?