This is a demo of hooking up Mayfly to
Hibernate.
To browse the demo, just look at the Java code (very short):
To run the demo, put the above files in a project together
with the required jars from hibernate core and hibernate annotations.
Then run the tests in FooTest.
For me (Hibernate 3.2.5.ga and Hibernate Annotations3.3.0 GA) the
jars were:
- asm-attrs.jar (1.5.3, as needed by hibernate)
- asm.jar (1.5.3, as needed by hibernate)
- asm-util-1.5.3.jar (I didn't find this distributed with hibernate,
so I got it from
asm.objectweb.org)
- cglib-2.1.3.jar
- commons-logging-1.0.4.jar
- dom4j-1.6.1.jar
- ejb3-persistence.jar
- hibernate3.jar
- hibernate-annotations.jar
- hibernate-commons-annotations.jar
See also