/*
 *
 *  * 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 + '\'' +
                '}';
    }
}

/*
 *
 *  * 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;

    private String localization;

    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;
    }

    public String getLocalization() {
        return localization;
    }

    public WineCellar setLocalization(final String localization) {
        this.localization = localization;
        return this;
    }

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

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

}

Add localization on wine cellar