{
private static final long serialVersionUID = 1L;
- private Class<Dialect> dialectClass;
-
- public ValidationConfiguration(final String dialectClass)
- {
- try {
- this.dialectClass = (Class<Dialect>) Class.forName(dialectClass);
- } catch (ClassNotFoundException e) {
- throw new RuntimeException(e);
- }
- }
@Override
protected void secondPassCompile() throws MappingException
Validation.buildDefaultValidatorFactory(),
classes.values(),
getProperties(),
- dialectClass.newInstance()
+ ((Class<Dialect>)Class.forName(getProperty(Hbm2DdlMojo.DIALECT))).newInstance()
);
}
catch (Exception e)
throw new RuntimeException(e);
}
}
+
+ public String getTypeDefs()
+ {
+ return typeDefs.entrySet().toString();
+ }
}