Search in sources :

Example 1 with AddIndexChange

use of org.bimserver.database.migrations.change.AddIndexChange in project BIMserver by opensourceBIM.

the class Schema method addIndex.

public void addIndex(EStructuralFeature eStructuralFeature) {
    changes.add(new AddIndexChange(this, eStructuralFeature));
    EAnnotation index = EcoreFactory.eINSTANCE.createEAnnotation();
    index.setSource("singleindex");
    eStructuralFeature.getEAnnotations().add(index);
}
Also used : EAnnotation(org.eclipse.emf.ecore.EAnnotation) AddIndexChange(org.bimserver.database.migrations.change.AddIndexChange)

Aggregations

AddIndexChange (org.bimserver.database.migrations.change.AddIndexChange)1 EAnnotation (org.eclipse.emf.ecore.EAnnotation)1