Application Library

For the most part you can persist your domain objects just by marking up your domain objects using the JPA annotations. However, persisting custom value types does require additional coding to allow Hibernate to persist these objects.

The JPA Objects application library therefore provides some helper classes to allow you to persist your values types. Specifically it provides:

  • abstract adapter classes for Hibernate's UserType and CompositeUserType interfaces * concrete implementations of these interfaces for Naked Objects' own value types (such as Color, Money, and so on)

    See the user guide for more details on using these classes.