test(manager-test-api): ase custom H2 dialect in tests.
fix(manager-api-jpa): add `VARBINARY` -> `Blob` for H2 Apiman dialect
MODIFY
manager/api/jpa/src/main/java/io/apiman/manager/api/jpa/ApimanH2Dialect.java
manager/api/jpa/src/main/java/io/apiman/manager/api/jpa/ApimanH2Dialect.java
@@ -31,6 +31,7 @@ public class ApimanH2Dialect extends H2Dialect {
*/
public ApimanH2Dialect() {
registerColumnType(Types.LONGVARCHAR, String.format("varchar(%d)", Integer.MAX_VALUE)); //$NON-NLS-1$
+ registerColumnType(Types.VARBINARY, "BLOB");
}
}

MODIFY
manager/test/api/src/main/java/io/apiman/manager/test/server/ManagerApiTestServer.java
manager/test/api/src/main/java/io/apiman/manager/test/server/ManagerApiTestServer.java
@@ -233,7 +233,7 @@ public class ManagerApiTestServer {
* @throws SQLException
*/
private static BasicDataSource createInMemoryDatasource() throws SQLException {
- TestUtil.setProperty("apiman.hibernate.dialect", "org.hibernate.dialect.H2Dialect");
+ TestUtil.setProperty("apiman.hibernate.dialect", "io.apiman.manager.api.jpa.ApimanH2Dialect");
BasicDataSource ds = new BasicDataSource();
ds.setDriverClassName(Driver.class.getName());
ds.setUsername("sa");

test(manager-test-api): ase custom H2 dialect in tests.

fix(manager-api-jpa): add `VARBINARY` -> `Blob` for H2 Apiman dialect