package org.axway.grapes.server.db.datamodel;

import org.jongo.marshall.jackson.oid.Id;

import java.util.ArrayList;
import java.util.List;

/**
 * Organization Model Class
 *
 *
 * <P> Model Objects are used in the communication with the Grapes server.
 * These objects are serialized/un-serialized in JSON objects to be exchanged via http REST calls.
 *
 * @author jdcoffre
 */
public class DbOrganization {

    public static final String DATA_MODEL_VERSION = "datamodelVersion";
    private String datamodelVersion = DbCollections.datamodelVersion;

    @Id
    private String name;

    public static final String CORPORATE_GROUPID_PREFIXES_FIELD = "corporateGroupIdPrefixes";
    private List<String> corporateGroupIdPrefixes = new ArrayList<String>();


    public String getName() {
        return name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public List<String> getCorporateGroupIdPrefixes() {
        return corporateGroupIdPrefixes;
    }

    public void setCorporateGroupIdPrefixes(final List<String> corporateGroupIdPrefixes) {
        this.corporateGroupIdPrefixes = corporateGroupIdPrefixes;
    }

}

@@ -1159,10 +1159,211 @@
 %0A    %7D%0A%0A
+    public String getDatamodelVersion() %7B%0A        return datamodelVersion;%0A    %7D%0A%0A    public void setDatamodelVersion(String datamodelVersion) %7B%0A        this.datamodelVersion = datamodelVersion;%0A    %7D%0A
 %7D%0A

Add forgotten getter/setter for DbOrganization data-model version