Set the property Hibernate.temp.use_jdbc_metadata_defaults to false in the configuration of your session factory. This will indicate to Hibernate using metadata dialect instead of the connection, which makes the slow startup. You must also configure an appropriate dialect for your driver.