I'm running standalone. I was following the instructions by Michael Glögl,
http://www.gloegl.de. Here is my hibernate.cfg.xml file
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory name="Waitlist">
<property name="show_sql">
true
</property>
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.url">
jdbc:mysql://localhost/waitlist
</property>
<property name="hibernate.connection.username">
waitlist
</property>
<property name="hibernate.connection.password">
patience
</property>
<property name="dialect">
net.sf.hibernate.dialect.MySQLDialect
</property>
<property name="transaction.factory_class">
net.sf.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.provider_class">
net.sf.hibernate.cache.HashtableCacheProvider
</property>
<mapping resource="Facilities.hbm.xml"/>
</session-factory>
</hibernate-configuration>
The code for my sessionfactory is
Configuration cfg = new Configuration();
cfg.configure();
SessionFactory sf = cfg.buildSessionFactory();
Thanks for your help.