This is the simplest stand-alone Hibernate Enum example I could cook up.
The interesting part is the annotation on MyPersistentObject._myEnum. Also notice that I don't need to register the Enum with Hibernate (eg. call addAnnotatedClass(...)).
Notice: This is provided with no warranty whatsoever. Use at your own risk.
This is the Enum:
This is the class that has an instance of the Enum:
This is how I use it:
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop