Added the annotations @NotNull and @Temporal.
This commit is contained in:
parent
2c8592541b
commit
b2dae45419
@ -5,6 +5,7 @@ import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import org.hibernate.annotations.Cache;
|
||||
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
||||
@ -28,15 +29,15 @@ public class ApplicationPeriod extends DomainObject {
|
||||
@ManyToMany
|
||||
private Set<ProjectClass> projectClass = new HashSet<ProjectClass>();
|
||||
|
||||
// @Basic(optional = false)
|
||||
@NotNull
|
||||
private String name;
|
||||
|
||||
// @Basic(optional = false)
|
||||
// @Temporal(TemporalType.DATE)
|
||||
@NotNull
|
||||
@Temporal(TemporalType.DATE)
|
||||
private Date startDate;
|
||||
|
||||
// @Basic(optional = false)
|
||||
// @Temporal(TemporalType.DATE)
|
||||
@NotNull
|
||||
@Temporal(TemporalType.DATE)
|
||||
private Date endDate;
|
||||
|
||||
public ApplicationPeriod() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user