I've put together some really simple examples of using Hibernate on my web log at http://www.ideoplex.com/blog/topic/software/java/ These examples use ant and hsqldb and are run as console applications.