import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@Entity
@JsonIdentityInfo(generator=JSOGGenerator.class)
public class Document extends BaseEntity {
<BUG>@JsonView({ View.Documents.class })
</BUG>
@Column(name = "Name")
private String name;
<BUG>@JsonView({ View.Documents.class })
@Column(name = "Text", columnDefinition = "TEXT")
private String text;
@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE },</BUG>
optional = false)

import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@Entity
@JsonIdentityInfo(generator=JSOGGenerator.class)
public class Document extends BaseEntity {
@JsonView({ View.Documents.class, View.Projects.class })
@Column(name = "Name")
private String name;
@JsonProperty(access = Access.WRITE_ONLY)
@Column(name = "Text", columnDefinition = "TEXT")
private String text;
@JsonView({ View.Documents.class })
@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE },
optional = false)
