/*
 *
 *  Copyright (c) 2019 Otávio Santana and others
 *   All rights reserved. This program and the accompanying materials
 *   are made available under the terms of the Eclipse Public License v1.0
 *   and Apache License v2.0 which accompanies this distribution.
 *   The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
 *   and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
 *
 *   You may elect to redistribute this code under either of these licenses.
 *
 *   Contributors:
 *
 *   Otavio Santana
 *
 */
package org.jnosql.artemis.model;

import org.jnosql.artemis.Column;
import org.jnosql.artemis.Id;

import java.util.Collections;
import java.util.Set;

public class Vendor {
    @Id
    private  String name;

    @Column
    private Set<String> prefixes;

    Vendor() {}

    public Vendor(String name) {
        this.name = name;
        prefixes = Collections.emptySet();
    }

    public String getName() {
        return name;
    }

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

    public Set<String> getPrefixes() {
        return prefixes;
    }

    public void setPrefixes(Set<String> prefixes) {
        this.prefixes = prefixes;
    }
}

@@ -649,16 +649,50 @@
 Column;%0A
+import org.jnosql.artemis.Entity;%0A
 import o
@@ -713,16 +713,16 @@
 mis.Id;%0A
-
 %0Aimport 
@@ -767,16 +767,35 @@
 l.Set;%0A%0A
+@Entity(%22vendors%22)%0A
 public c
@@ -808,16 +808,17 @@
 endor %7B%0A
+%0A
     @Id%0A
@@ -829,17 +829,16 @@
 private 
- 
 String n
@@ -890,16 +890,16 @@
 fixes;%0A%0A
-
     Vend
@@ -904,16 +904,21 @@
 ndor() %7B
+%0A    
 %7D%0A%0A    p
@@ -1313,11 +1313,90 @@
 s;%0A    %7D
+%0A%0A    public void add(String prefix) %7B%0A        this.prefixes.add(prefix);%0A    %7D
 %0A%7D%0A

add converty to vendor