// wasn't specified) so assign it the annotation default of ""
if (m_generator == null) {
m_generator = "";
}
Sequence sequence = sequences.get(m_generator);
if (sequence == null) {
// A null strategy will default to AUTO.
if (m_strategy == null || m_strategy.equals(GenerationType.AUTO.name())) {
if (sequences.containsKey(MetadataProject.DEFAULT_AUTO_GENERATOR)) {
login.setDefaultSequence(sequences.get(MetadataProject.DEFAULT_AUTO_GENERATOR));
}
} else if (m_strategy.equals(GenerationType.TABLE.name())) {
if (m_generator.equals("")) {
sequence = sequences.get(MetadataProject.DEFAULT_TABLE_GENERATOR);
} else {
sequence = (Sequence) sequences.get(MetadataProject.DEFAULT_TABLE_GENERATOR).clone();
sequence.setName(m_generator);
}
} else if (m_strategy.equals(GenerationType.SEQUENCE.name())) {
if (m_generator.equals("")) {
sequence = sequences.get(MetadataProject.DEFAULT_SEQUENCE_GENERATOR);
} else {
sequence = (Sequence) sequences.get(MetadataProject.DEFAULT_SEQUENCE_GENERATOR).clone();
sequence.setName(m_generator);
}
} else if (m_strategy.equals(GenerationType.IDENTITY.name())) {
if (m_generator.equals("")) {
sequence = sequences.get(MetadataProject.DEFAULT_IDENTITY_GENERATOR);
} else {
sequence = (Sequence) sequences.get(MetadataProject.DEFAULT_IDENTITY_GENERATOR).clone();
sequence.setName(m_generator);
}
}
}
if (sequence != null) {
descriptor.setSequenceNumberName(sequence.getName());
login.addSequence(sequence);
} else {
String seqName;
if (m_generator.equals("")) {