-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from EntryDSM/feature/26-change-description-fi…
…eld-from-String-list-to-object-list-with-Title-and-content Feature/26 change description field from String list to object list with Title and content
- Loading branch information
Showing
9 changed files
with
78 additions
and
56 deletions.
There are no files selected for viewing
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
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
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
11 changes: 11 additions & 0 deletions
11
src/main/kotlin/entry/dsm/gitauth/equusgithubauth/domain/notice/entity/DescriptionItem.kt
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,11 @@ | ||
package entry.dsm.gitauth.equusgithubauth.domain.notice.entity | ||
|
||
import jakarta.validation.constraints.NotBlank | ||
|
||
data class DescriptionItem( | ||
@NotBlank(message = "타이틀은 비워둘 수 없습니다") | ||
val title: String, | ||
|
||
@NotBlank(message = "내용은 비워둘 수 없습니다") | ||
val content: String | ||
) |
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
20 changes: 20 additions & 0 deletions
20
src/main/kotlin/entry/dsm/gitauth/equusgithubauth/domain/notice/entity/NoticeDescription.kt
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,20 @@ | ||
package entry.dsm.gitauth.equusgithubauth.domain.notice.entity | ||
|
||
import jakarta.persistence.* | ||
|
||
@Entity(name = "notice_description") | ||
class NoticeDescription( | ||
@Id | ||
@GeneratedValue | ||
val id: Long = 0, | ||
|
||
@Column(nullable = false) | ||
var title: String, | ||
|
||
@Column(nullable = false, columnDefinition = "TEXT") | ||
var content: String, | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "notice_id") | ||
var notice: Notice, | ||
) |
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
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
26 changes: 0 additions & 26 deletions
26
src/main/kotlin/entry/dsm/gitauth/equusgithubauth/global/security/SecurityConfig.kt
This file was deleted.
Oops, something went wrong.