Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple Hibernate Container Example

 
Christopher Rygaard
Ranch Hand
Posts: 42
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic