-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f2f988
commit a69f59b
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/main/java/com/com/cnu/devlog_springboot/model/Project.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.com.cnu.devlog_springboot.model; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import lombok.*; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Getter | ||
@Setter | ||
@Entity(name = "projects") | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED, force = true) | ||
public class Project { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
Integer id; | ||
String title; | ||
String summary; | ||
String contents; | ||
LocalDate startDate; | ||
LocalDate endDate; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/com/cnu/devlog_springboot/model/request/ProjectRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.com.cnu.devlog_springboot.model.request; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record ProjectRequest( | ||
String title, | ||
String summary, | ||
String contents, | ||
LocalDate startDate, | ||
LocalDate endDate | ||
) { | ||
} |