I'd like to know if there is a possiblity to create only one table at runtime if it doesn't already exist; independent from the used DB. Actually I'm using a MySQL DB and I know, it's possible to create a table per JDBC:
Code:
Session session = sessionFactory.getCurrentSession();
session.beginTransaction();
String sql = "create table if not exists TEST (ID INT)";
try {
session.connection().createStatement().execute(sql);
}
catch (HibernateException e) {}
catch (SQLException e) {}
session.getTransaction().commit();
But it's JDBC and special to MySQL and I prefer to use Hibernate