Thanks for this contribution -- we're going to take a similar approach.
One difference, however, is that we plan to extend the Jakarta
commons-lang Enum class for our base PersistentEnum.
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/enum/Enum.html
Like you, we have found that in some cases it make sense to combine the
user-defined Type with the object that is being mapped to the database.
This is a convenient way to compact the number of entities you have to
deal with.
Cheers,
Nate |