OK, GenericSqlDialect will work for my situation then?
How would I go about creating a new session factory? Would I just add another <session-factory></session-factory> block to the hibernate.cfg.xml?
If so, do I have to build the session factory differently? Here is how I am currently building it:
Code:
/**
*Build the hibernate session factory
*
*/
public void init(ServletConfig configs){
try {
System.out.println("Initializing Hibernate");
hibernateConfigruation = new Configuration();
sessionFactory = hibernateConfigruation.configure().buildSessionFactory();
System.out.println("Finished Initializing Hibernate");
} catch (HibernateException e) {
System.out.println("FATAL ERROR: HIBERNATE FAILED TO START");
e.printStackTrace();
}
}
Once the session factory is built, how do I tell hibernate to give me a session from the factory I want?
Thanks,
Paul