package ohtuhatut.domain;

import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.List;

/**
 * The class for a list of references
 * Created by iilumme.
 */

@Entity
@Table(name = "ReferenceList")
public class ReferenceList extends AbstractPersistable<Long> {

    @OneToMany(fetch = FetchType.LAZY)
    private List<Reference> references;

    public List<Reference> getReferences() {
        return this.references;
    }

    public void setReferences(List<Reference> references) {
        this.references = references;
    }
}

@@ -499,16 +499,266 @@
 ences;%0A%0A
+    private String name;%0A    %0A    public ReferenceList(String name) %7B%0A        this.name = name;%0A    %7D%0A    %0A    public String getName() %7B%0A        return this.name;%0A    %7D%0A    %0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A    %0A
     publ

Add name field for reference list