* @param dialect
*/
public void connect(DataSource dataSource, Dialect dialect) {
try {
setDataSource(dataSource);
meta = new DatabaseMetadata(dataSource.getConnection(), dialect);
meta.loadAllMetadata(getSchema(), null, false);
} catch (SQLException e) {
logger.error("cannot build connection using:{} under dialect {}", dataSource, dialect);
throw new RuntimeException(e);
}