getMetadata().setIndexes(new ArrayList<IndexMetadata>());
getMetadata().setUniqueConstraints(new ArrayList<UniqueConstraintMetadata>());
}
public Index addIndex() {
IndexImpl index = new IndexImpl();
getMetadata().getIndexes().add(index.getMetadata());
return index;
}