Package net.sf.hibernate.tool.hbm2ddl

Examples of net.sf.hibernate.tool.hbm2ddl.DatabaseMetadata


    hibernateTemplate.execute(
      new HibernateCallback() {
        public Object doInHibernate(Session session) throws HibernateException, SQLException {
          Connection con = session.connection();
          Dialect dialect = Dialect.getDialect(configuration.getProperties());
          DatabaseMetadata metadata = new DatabaseMetadata(con, dialect);
          String[] sql = configuration.generateSchemaUpdateScript(dialect, metadata);
          executeSchemaScript(con, sql);
          return null;
        }
      }
View Full Code Here

TOP

Related Classes of net.sf.hibernate.tool.hbm2ddl.DatabaseMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.