runScript(URL url, String dsLocation) Create the database by loading a URL pointing at a SQL script.
public static void
runScript(String sql, String dsLocation) Create a new database and initialize it with the specified sql script.
Method Detail
createHibernate3SessionFactory
public static org.hibernate.SessionFactory createHibernate3SessionFactory() throws Exception(Code)
createHibernateSessionFactory
public static SessionFactory createHibernateSessionFactory() throws Exception(Code)
Use the default Hibernate *.hbm.xml files. These build the primary keys
based on an identity or sequence, whatever is native to the database.
throws: Exception -
createPropertySetSessionFactory
public static SessionFactory createPropertySetSessionFactory() throws Exception(Code)
runScript
public static void runScript(URL url, String dsLocation)(Code)
Create the database by loading a URL pointing at a SQL script.