posted 6 years ago
Simple Container Example
This is the simplest stand-alone Hibernate container example I could cook up.
The interesting parts are the annotation on Contained._container and Container._children.
Notice: This is provided with no warranty whatsoever. Use at your own risk.
This is the contained class:
This is the container class:
This is an example of how to use a container in Hibernate: