83 lines
1.6 KiB
Java
83 lines
1.6 KiB
Java
package eu.eudat.migration.entities;
|
|
|
|
|
|
import javax.persistence.*;
|
|
import java.util.Date;
|
|
|
|
@Entity
|
|
@Table(name = "guidance_groups")
|
|
public class GuidanceGroup {
|
|
|
|
@Id
|
|
private Long id;
|
|
private String name;
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
|
@JoinColumn(name = "org_id")
|
|
private Organization organization;
|
|
@Column(name = "created_at")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date createdAt;
|
|
@Column(name = "updated_at")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date updatedAt;
|
|
@Column(name = "optional_subset")
|
|
private Boolean optionalSubset;
|
|
private Boolean published;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Organization getOrganization() {
|
|
return organization;
|
|
}
|
|
|
|
public void setOrganization(Organization organization) {
|
|
this.organization = organization;
|
|
}
|
|
|
|
public Date getCreatedAt() {
|
|
return createdAt;
|
|
}
|
|
|
|
public void setCreatedAt(Date createdAt) {
|
|
this.createdAt = createdAt;
|
|
}
|
|
|
|
public Date getUpdatedAt() {
|
|
return updatedAt;
|
|
}
|
|
|
|
public void setUpdatedAt(Date updatedAt) {
|
|
this.updatedAt = updatedAt;
|
|
}
|
|
|
|
public Boolean getOptionalSubset() {
|
|
return optionalSubset;
|
|
}
|
|
|
|
public void setOptionalSubset(Boolean optionalSubset) {
|
|
this.optionalSubset = optionalSubset;
|
|
}
|
|
|
|
public Boolean getPublished() {
|
|
return published;
|
|
}
|
|
|
|
public void setPublished(Boolean published) {
|
|
this.published = published;
|
|
}
|
|
}
|