Member Menu
 
 Monthly JBoss newsletter:
 
Hibernate Books
CaveatEmptor

The CaveatEmptor example application

CaveatEmptor is an online auction application with business objects such as Item, User, and Bid. The domain model covers various kinds of entities, entity associations and collections, in other words, (almost) all business entities and especially data persistence problems you usually encounter in any multi-user application. Browse and re-use the source code of CaveatEmptor to learn Hibernate application development.

This is also the website for the books Java Persistence with Hibernate and the older edition Hibernate in Action. Both books explain the CaveatEmptor application. You can download the source code for the books here. (Note that the source code for Hibernate in Action is old and only interesting to readers of this book!)

Use the forum to discuss CaveatEmptor and the Hibernate books. You can also find the errata for the books on the forum.


Getting Started - Hello World

The Hello World example is a standalone tutorial, download the source code and the free sample chapter of Java Persistence with Hibernate that guides you step-by-step through the code. If you haven't used Hibernate before, start here.

CaveatEmptor Native

This version of CaveatEmptor uses only native Hibernate APIs and Hibernate XML mapping files. Included are all common and special mapping techniques, Hibernate configuration, audit logging examples, a data access object (DAO) implementation, as well as integration testing utilities.

CaveatEmptor Java Persistence

This version of CaveatEmptor uses Java Persistence interfaces, and JDK 5.0 annotations for the object/relational mapping. All XML mappings of the CaveatEmptor Native package are duplicated with annotations. Included are data access objects (DAO) implemented with Java Persistence, and EJB 3.0 container integration with unit testing.

CaveatEmptor Seam

This version of CaveatEmptor, with a user interface implemented in JSF and integrated with the JBoss Seam framework, is currently in development with no set release date. Furthermore, the Seam chapter in the book Java Peristence with Hibernate is now slightly outdated and your best starting point is the current Seam Getting Started Guide.


Download

Package Release date Archive
Getting Started - Hello World 01.04.2007 zip (30.1 MB) Download
CaveatEmptor Native 11.12.2006 zip (8 MB) Download
CaveatEmptor JPA/EJB 3.0 11.12.2006 zip (16 MB) Download
CaveatEmptor (Hibernate in Action, EOL) 14.08.2004 zip (3.2 MB) Download
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]