@Column(name = "Text", columnDefinition = "TEXT")
private String text;
@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE },</BUG>
optional = false)
@JoinColumn(name = "project_fk")
<BUG>private Project project;
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE },</BUG>
mappedBy = "document")
<BUG>private Set<State> states = new HashSet<>();
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE }, fetch = FetchType.EAGER)</BUG>
@JoinTable(

@Column(name = "Text", columnDefinition = "TEXT")
private String text;
@JsonView({ View.Documents.class })
@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE },
optional = false)
@JoinColumn(name = "project_fk")
private Project project;
@JsonView({ View.Documents.class, View.Projects.class })
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE },
mappedBy = "document")
private Set<State> states = new HashSet<>();
@JsonView({ View.Documents.class })
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE }, fetch = FetchType.EAGER)
@JoinTable(
