m_validator.throwConflictingSequenceGeneratorsSpecified(name, sequenceGenerator.getLocation(), otherSequenceGenerator.getLocation());
}
}
if (m_project.hasTableGenerator(name)) {
MetadataTableGenerator otherTableGenerator = m_project.getTableGenerator(name);
m_validator.throwConflictingSequenceAndTableGeneratorsSpecified(name, sequenceGenerator.getLocation(), otherTableGenerator.getLocation());
}
for (MetadataTableGenerator otherTableGenerator : m_project.getTableGenerators()) {
if (otherTableGenerator.getPkColumnValue().equals(sequenceGenerator.getSequenceName())) {
// generator name will be used instead of an empty sequence name / pk column name
if(otherTableGenerator.getPkColumnValue().length() > 0) {
m_validator.throwConflictingSequenceNameAndTablePkColumnValueSpecified(sequenceGenerator.getSequenceName(), sequenceGenerator.getLocation(), otherTableGenerator.getLocation());
}
}
}
m_project.addSequenceGenerator(sequenceGenerator);