mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11256: SchemaBootstrap must compare running schema against reference dump
Reference schemas (e.g. classpath:org/alfresco/util/schemacomp/reference/PostgreSQLDialect-Reference.xml) are loaded (if present) and the database is compared to that reference schema. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -29,7 +29,6 @@ import org.alfresco.util.schemacomp.model.PrimaryKey;
|
||||
import org.alfresco.util.schemacomp.model.Schema;
|
||||
import org.alfresco.util.schemacomp.model.Table;
|
||||
import org.alfresco.util.schemacomp.validator.DbValidator;
|
||||
import org.apache.poi.hssf.record.DVALRecord;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.ContentHandler;
|
||||
import org.xml.sax.SAXException;
|
||||
@@ -91,12 +90,12 @@ public class DbObjectXMLTransformer
|
||||
* @param validators
|
||||
* @throws SAXException
|
||||
*/
|
||||
private void transformValidators(List<DbValidator<? extends DbObject>> validators) throws SAXException
|
||||
private void transformValidators(List<DbValidator> validators) throws SAXException
|
||||
{
|
||||
if (validators.size() > 0)
|
||||
{
|
||||
simpleStartTag(XML.EL_VALIDATORS);
|
||||
for (DbValidator<? extends DbObject> dbv : validators)
|
||||
for (DbValidator dbv : validators)
|
||||
{
|
||||
final AttributesImpl attribs = new AttributesImpl();
|
||||
attribs.addAttribute("", "", XML.ATTR_CLASS, "CDATA", dbv.getClass().getName());
|
||||
|
Reference in New Issue
Block a user