@@ -0,0 +1,1634 @@
+package at.ac.tuwien.inso.controller.admin.forms;%0A%0A%0Aimport at.ac.tuwien.inso.entity.EctsDistribution;%0Aimport at.ac.tuwien.inso.entity.StudyPlan;%0Aimport org.hibernate.validator.constraints.NotEmpty;%0A%0Aimport javax.validation.constraints.Min;%0Aimport javax.validation.constraints.NotNull;%0Aimport java.math.BigDecimal;%0A%0Apublic class CreateStudyPlanForm %7B%0A%0A    @NotEmpty%0A    private String name;%0A%0A    @Min(1)%0A    @NotNull%0A    private BigDecimal mandatory;%0A%0A    @Min(1)%0A    @NotNull%0A    private BigDecimal optional;%0A%0A    @Min(1)%0A    @NotNull%0A    private BigDecimal freeChoice;%0A%0A    protected CreateStudyPlanForm() %7B%7D%0A%0A    public CreateStudyPlanForm(String name, BigDecimal mandatory, BigDecimal optional, BigDecimal freeChoice) %7B%0A        this.name = name;%0A        this.mandatory = mandatory;%0A        this.optional = optional;%0A        this.freeChoice = freeChoice;%0A    %7D%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public BigDecimal getMandatory() %7B%0A        return mandatory;%0A    %7D%0A%0A    public void setMandatory(BigDecimal mandatory) %7B%0A        this.mandatory = mandatory;%0A    %7D%0A%0A    public BigDecimal getOptional() %7B%0A        return optional;%0A    %7D%0A%0A    public void setOptional(BigDecimal optional) %7B%0A        this.optional = optional;%0A    %7D%0A%0A    public BigDecimal getFreeChoice() %7B%0A        return freeChoice;%0A    %7D%0A%0A    public void setFreeChoice(BigDecimal freeChoice) %7B%0A        this.freeChoice = freeChoice;%0A    %7D%0A%0A    public StudyPlan toStudyPlan() %7B%0A        return new StudyPlan(name, new EctsDistribution(mandatory, optional, freeChoice));%0A    %7D%0A%7D%0A

add a new form for study plan creation.