package at.ac.tuwien.inso.controller.admin.forms;


import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.constraints.NotNull;

import at.ac.tuwien.inso.entity.Lecturer;
import at.ac.tuwien.inso.service.LecturerService;
import at.ac.tuwien.inso.service.SubjectService;


public class AddLecturersToSubjectForm {

    public AddLecturersToSubjectForm() {
    }

    public AddLecturersToSubjectForm(Long id) {
        this.id = id;
    }

    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long toLecturerId() {
        return id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AddLecturersToSubjectForm that = (AddLecturersToSubjectForm) o;

        return id != null ? id.equals(that.id) : that.id == null;

    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "AddLecturersToSubjectForm{" +
                "id=" + id +
                '}';
    }
}

@@ -49,261 +49,8 @@
 ;%0A%0A%0A
-import org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport javax.validation.constraints.NotNull;%0A%0Aimport at.ac.tuwien.inso.entity.Lecturer;%0Aimport at.ac.tuwien.inso.service.LecturerService;%0Aimport at.ac.tuwien.inso.service.SubjectService;%0A%0A%0A
 publ
@@ -173,25 +173,33 @@
 ctForm(Long 
-i
+lecturerI
 d) %7B%0A       
@@ -196,38 +196,54 @@
  %7B%0A        this.
-id = i
+lecturerId = lecturerI
 d;%0A    %7D%0A%0A    pr
@@ -253,17 +253,25 @@
 te Long 
-i
+lecturerI
 d;%0A%0A    
@@ -285,16 +285,24 @@
 Long get
+Lecturer
 Id() %7B%0A 
@@ -307,33 +307,41 @@
 %0A        return 
-i
+lecturerI
 d;%0A    %7D%0A%0A    pu
@@ -357,500 +357,141 @@
  set
-Id(Long id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public Long toLecturerId() %7B%0A        return id;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        AddLecturersToSubjectForm that = (AddLecturersToSubjectForm) o;%0A%0A        return id != null ? id.equals(that.id) : that.id == null;%0A%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return id != null ? id.hashCode() : 0
+LecturerId(Long lecturerId) %7B%0A        this.lecturerId = lecturerId;%0A    %7D%0A%0A    public Long toLecturerId() %7B%0A        return lecturerId
 ;%0A  
@@ -607,16 +607,32 @@
    %22
-id=%22 + i
+lecturerId=%22 + lecturerI
 d +%0A

Fix AddLecturersToSubjectForm