|
|
|
@ -873,7 +873,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
@SuppressWarnings("deprecation") |
|
|
|
|
|
|
|
Connection con = session.connection(); |
|
|
|
Connection con = session.connection(); |
|
|
|
DatabaseMetadata metadata = new DatabaseMetadata(con, dialect); |
|
|
|
DatabaseMetadata metadata = new DatabaseMetadata(con, dialect); |
|
|
|
String[] sql = getConfiguration().generateSchemaUpdateScript(dialect, metadata); |
|
|
|
String[] sql = getConfiguration().generateSchemaUpdateScript(dialect, metadata); |
|
|
|
@ -919,7 +918,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
@SuppressWarnings("deprecation") |
|
|
|
|
|
|
|
Connection con = session.connection(); |
|
|
|
Connection con = session.connection(); |
|
|
|
DatabaseMetadata metadata = new DatabaseMetadata(con, dialect, false); |
|
|
|
DatabaseMetadata metadata = new DatabaseMetadata(con, dialect, false); |
|
|
|
getConfiguration().validateSchema(dialect, metadata); |
|
|
|
getConfiguration().validateSchema(dialect, metadata); |
|
|
|
@ -957,7 +955,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
@SuppressWarnings("deprecation") |
|
|
|
|
|
|
|
Connection con = session.connection(); |
|
|
|
Connection con = session.connection(); |
|
|
|
String[] sql = getConfiguration().generateDropSchemaScript(dialect); |
|
|
|
String[] sql = getConfiguration().generateDropSchemaScript(dialect); |
|
|
|
executeSchemaScript(con, sql); |
|
|
|
executeSchemaScript(con, sql); |
|
|
|
@ -995,7 +992,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
new HibernateCallback<Object>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
public Object doInHibernate(Session session) throws HibernateException, SQLException { |
|
|
|
@SuppressWarnings("deprecation") |
|
|
|
|
|
|
|
Connection con = session.connection(); |
|
|
|
Connection con = session.connection(); |
|
|
|
String[] sql = getConfiguration().generateSchemaCreationScript(dialect); |
|
|
|
String[] sql = getConfiguration().generateSchemaCreationScript(dialect); |
|
|
|
executeSchemaScript(con, sql); |
|
|
|
executeSchemaScript(con, sql); |
|
|
|
|