Skip to content

Commit

Permalink
Merge pull request #21 from UdL-EPS-SoftArch/crud-Schedule
Browse files Browse the repository at this point in the history
Crud Schedule
  • Loading branch information
rogargon authored Feb 22, 2024
2 parents 18d3c4e + d16cd5a commit 2253b6a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 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,24 @@
package cat.udl.eps.softarch.demo.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Entity
@Data
@EqualsAndHashCode(callSuper = true)
public class Schedule extends UriEntity<Long> {

@Id
private Long id;

@NotNull
private Date start;

@NotNull
private Date finish;
}

0 comments on commit 2253b6a

Please sign in to comment.