/*
 *
 *  * Copyright 2013 - Elian ORIOU
 *  *
 *  * Licensed under the Apache License, Version 2.0 (the "License");
 *  * you may not use this file except in compliance with the License.
 *  * You may obtain a copy of the License at
 *  *
 *  *    http://www.apache.org/licenses/LICENSE-2.
 *  *
 *  * Unless required by applicable law or agreed to in writing, software
 *  * distributed under the License is distributed on an "AS IS" BASIS,
 *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  * See the License for the specific language governing permissions and
 *  * limitations under the License.
 *
 */

package com.vino.domain;

public class WineCellar extends Entity {

    private String name;

    private String description;

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public WineCellar setDescription(final String description) {
        this.description = description;
        return this;
    }

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

    @Override
    public EntityType getType() {
        return EntityType.CELLAR;
    }

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

@@ -761,16 +761,50 @@
 ption;%0A%0A
+    private String localization;%0A%0A
     publ
@@ -1171,84 +1171,206 @@
     
-@Override%0A    public EntityType getType() %7B%0A        return EntityType.CELLAR
+public String getLocalization() %7B%0A        return localization;%0A    %7D%0A%0A    public WineCellar setLocalization(final String localization) %7B%0A        this.localization = localization;%0A        return this
 ;%0A  
@@ -1435,16 +1435,20 @@
 return %22
+Wine
 Cellar%7B%22
@@ -1568,17 +1568,166 @@
     
-'%7D';%0A    %7D
+%22, localization='%22 + localization + '%5C'' +%0A                '%7D';%0A    %7D%0A%0A    @Override%0A    public EntityType getType() %7B%0A        return EntityType.CELLAR;%0A    %7D%0A
 %0A%7D%0A

Add localization on wine cellar