package com.beolnix.marvin.config.api.model;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by beolnix on 17/01/16.
 */
public class PluginConfig {
    @XmlAttribute(required = true)
    private String name;

    @XmlElement(name = "property")
    private List<Property> properties = new ArrayList<>();

    @Override
    public String toString() {
        return "PluginConfig{" +
                "name='" + name + '\'' +
                ", properties=" + properties +
                '}';
    }

    public String getName() {
        return name;
    }

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

    public List<Property> getProperties() {
        return properties;
    }

    public void setProperties(List<Property> properties) {
        this.properties = properties;
    }
}

@@ -39,16 +39,114 @@
 model;%0A%0A
+import javax.xml.bind.annotation.XmlAccessType;%0Aimport javax.xml.bind.annotation.XmlAccessorType;%0A
 import j
@@ -324,16 +324,54 @@
 16.%0A */%0A
+@XmlAccessorType(XmlAccessType.FIELD)%0A
 public c

fix xml mapping of pluginConfig field