/*
 * Wegas
 * http://wegas.albasim.ch
 *
 * Copyright (c) 2013-2018 School of Business and Engineering Vaud, Comem, MEI
 * Licensed under the MIT License
 */
package com.wegas.resourceManagement.persistence;

import ch.albasim.wegas.annotations.View;
import ch.albasim.wegas.annotations.WegasEntityProperty;
import com.fasterxml.jackson.annotation.JsonView;
import com.wegas.core.persistence.variable.VariableDescriptor;
import com.wegas.core.rest.util.Views;
import com.wegas.editor.ValueGenerators.EmptyString;
import com.wegas.editor.View.HtmlView;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;

/**
 *
 * @author Maxence Laurent (maxence.laurent at gmail.com)
 */
@Entity
public class BurndownDescriptor extends VariableDescriptor<BurndownInstance> {

    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @Lob
    @Basic(fetch = FetchType.EAGER) // CARE, lazy fetch on Basics has some trouble.
    @JsonView(Views.ExtendedI.class)
    @WegasEntityProperty(searchable = true,
            optional = false, nullable= false, proposal = EmptyString.class,
            view = @View(label = "description", value = HtmlView.class))
    private String description;

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
}

@@ -215,1346 +215,305 @@
 rt c
-h.albasim.wegas.annotations.View;%0Aimport ch.albasim.wegas.annotations.WegasEntityProperty;%0Aimport com.fasterxml.jackson.annotation.JsonView;%0Aimport com.wegas.core.persistence.variable.VariableDescriptor;%0Aimport com.wegas.core.rest.util.Views;%0Aimport com.wegas.editor.ValueGenerators.EmptyString;%0Aimport com.wegas.editor.View.HtmlView;%0Aimport javax.persistence.Basic;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.FetchType;%0Aimport javax.persistence.Lob;%0A%0A/**%0A *%0A * @author Maxence Laurent (maxence.laurent at gmail.com)%0A */%0A@Entity%0Apublic class BurndownDescriptor extends VariableDescriptor%3CBurndownInstance%3E %7B%0A%0A    private static final long serialVersionUID = 1L;%0A    /**%0A     *%0A     */%0A    @Lob%0A    @Basic(fetch = FetchType.EAGER) // CARE, lazy fetch on Basics has some trouble.%0A    @JsonView(Views.ExtendedI.class)%0A    @WegasEntityProperty(searchable = true,%0A            optional = false, nullable= false, proposal = EmptyString.class,%0A            view = @View(label = %22description%22, value = HtmlView.class))%0A    private String description;%0A%0A    /**%0A     * @return the description%0A     */%0A    public String getDescription() %7B%0A        return description;%0A    %7D%0A%0A    /**%0A     * @param description the description to set%0A     */%0A    public void setDescription(String description) %7B%0A        this.description = description;%0A    %7D
+om.wegas.core.persistence.variable.VariableDescriptor;%0Aimport javax.persistence.Entity;%0A%0A/**%0A *%0A * @author Maxence Laurent (maxence.laurent at gmail.com)%0A */%0A@Entity%0Apublic class BurndownDescriptor extends VariableDescriptor%3CBurndownInstance%3E %7B%0A%0A    private static final long serialVersionUID = 1L;
 %0A%7D%0A

Remove useless burndown description