I have a hibernate-mapped Java object, JKL
, which is full of a bunch of normal hibernate-mappable fields (like strings and integers).
I\'m added a new e
You can use Hibernate's custom mapping types. Documentation is here. Here is an analogous example of mapping Scala's Option to a Hibernate mapping.
Simply put, you would need to extend the org.hibernate.UserType
interface. You could also create a generic-typed base class with a JKL
-typed sub-type, similar to what you see in the Scala example.