Since Version 5.x the only chance to inject catalog and/or schema into create/drop statements of database objects is to specify placeholders $ \ { { catalog \ } } / and/or $ \ { { schema \ } } within the <create> and / or <drop> tags which are wrapped by SimpleAuxiliaryDatabaseObject cause parameters catalog/schema were removed from the method signatures of AuxiliaryDatabaseObject. 1.) Why is the injection not provided for classes specified by <definition> tag ? 2.) How should someone deal with the remaining dots in the statement, if he specified placeholders but no hibernate.default_catalog/hibernate.default_schema is given in the hibernate.properties. In versions 4.x this was possible because catalog/schema were provided: {code} public String sqlDropString(Dialect dialect, String defaultCatalog, String defaultSchema) { String schemaString = defaultSchema != null ? defaultSchema+ "." : ""; return "drop table " + schemaString + "DATABASECHANGELOG"; } {code} |
|