Search in sources :

Example 1 with DbExtendedType

use of org.simpleflatmapper.test.beans.DbExtendedType in project SimpleFlatMapper by arnaudroger.

the class JooqMapperTest method testMapperDbExtendedType.

@Test
public void testMapperDbExtendedType() throws Exception {
    Connection conn = DbHelper.objectDb();
    DSLContext dsl = DSL.using(new DefaultConfiguration().set(conn).set(SQLDialect.HSQLDB).set(SfmRecordMapperProviderFactory.newInstance().newProvider()));
    List<DbExtendedType> list = dsl.select().from("db_extended_type").fetchInto(DbExtendedType.class);
    assertEquals(1, list.size());
    DbExtendedType o = list.get(0);
    DbExtendedType.assertDbExtended(o);
}
Also used : DbExtendedType(org.simpleflatmapper.test.beans.DbExtendedType) Connection(java.sql.Connection) DefaultConfiguration(org.jooq.impl.DefaultConfiguration) Test(org.junit.Test)

Aggregations

Connection (java.sql.Connection)1 DefaultConfiguration (org.jooq.impl.DefaultConfiguration)1 Test (org.junit.Test)1 DbExtendedType (org.simpleflatmapper.test.beans.DbExtendedType)1