Skip to content

Commit

Permalink
add Schedule class
Browse files Browse the repository at this point in the history
Committer: Sebastian Jitaru <[email protected]>
  • Loading branch information
nero committed Feb 20, 2024
1 parent 8e4d094 commit dbb0c9d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Schedule.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package cat.udl.eps.softarch.demo.domain;

import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PastOrPresent;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Entity
@Table(name = "Schedule") //Avoid collision with system table User
@Data
@EqualsAndHashCode(callSuper = true)

public class Schedule extends UriEntity<Long> {

@Id
private Integer id;

@NotNull
private LocalDateTime start;

@NotNull
private LocalDateTime end;

public LocalDateTime getStart() {
return start;
}

public LocalDateTime getEnd() {
return end;
}
}

0 comments on commit dbb0c9d

Please sign in to comment.