use of org.hibernate.cfg.reveng.JDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newDatabaseCollector.
@Override
public IDatabaseCollector newDatabaseCollector(IJDBCReader jdbcReader) {
assert jdbcReader instanceof IFacade;
JDBCReader jdbcReaderTarget = (JDBCReader) ((IFacade) jdbcReader).getTarget();
MetaDataDialect metadataDialect = jdbcReaderTarget.getMetaDataDialect();
return facadeFactory.createDatabaseCollector(new DefaultDatabaseCollector(metadataDialect));
}
use of org.hibernate.cfg.reveng.JDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newDatabaseCollector.
@Override
public IDatabaseCollector newDatabaseCollector(IJDBCReader jdbcReader) {
assert jdbcReader instanceof IFacade;
JDBCReader jdbcReaderTarget = (JDBCReader) ((IFacade) jdbcReader).getTarget();
MetaDataDialect metadataDialect = jdbcReaderTarget.getMetaDataDialect();
return facadeFactory.createDatabaseCollector(new DefaultDatabaseCollector(metadataDialect));
}
use of org.hibernate.cfg.reveng.JDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewJDBCReader.
@Test
public void testNewJDBCReader() {
IConfiguration configuration = FACADE_FACTORY.createConfiguration(new Configuration());
IReverseEngineeringStrategy engineeringStrategy = FACADE_FACTORY.createReverseEngineeringStrategy(new DefaultReverseEngineeringStrategy());
IJDBCReader jdbcReaderFacade = service.newJDBCReader(configuration, engineeringStrategy);
Assert.assertNotNull(jdbcReaderFacade);
JDBCReader reader = (JDBCReader) ((IFacade) jdbcReaderFacade).getTarget();
Assert.assertNotNull(reader);
}
use of org.hibernate.cfg.reveng.JDBCReader in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateJDBCReader.
@Test
public void testCreateJDBCReader() {
JDBCReader jdbcReader = new JDBCReader(null, null, null, null, null, new DefaultReverseEngineeringStrategy());
IJDBCReader facade = facadeFactory.createJDBCReader(jdbcReader);
Assert.assertSame(jdbcReader, ((IFacade) facade).getTarget());
}
use of org.hibernate.cfg.reveng.JDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewJDBCReader.
@Test
public void testNewJDBCReader() {
IConfiguration configuration = FACADE_FACTORY.createConfiguration(new Configuration());
IReverseEngineeringStrategy engineeringStrategy = FACADE_FACTORY.createReverseEngineeringStrategy(new DefaultReverseEngineeringStrategy());
IJDBCReader jdbcReaderFacade = service.newJDBCReader(configuration, engineeringStrategy);
Assert.assertNotNull(jdbcReaderFacade);
JDBCReader reader = (JDBCReader) ((IFacade) jdbcReaderFacade).getTarget();
Assert.assertNotNull(reader);
}
Aggregations