Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# 127 Certification 도메인 개발 #128

Merged
merged 4 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package team.msg.domain.certifiacation.model

import javax.persistence.Column
import javax.persistence.Entity
import team.msg.common.entity.BaseUUIDEntity
import java.time.LocalDate
import java.util.*

@Entity
class Certification(

@get:JvmName("getIdentifier")
override var id: UUID,

@Column(name = "student_id", columnDefinition = "BINARY(16)")
val studentId: UUID,

@Column(columnDefinition = "VARCHAR(30)", nullable = false)
val name: String,

@Column(columnDefinition = "DATE", nullable = false)
val acquisitionDate: LocalDate

) : BaseUUIDEntity(id)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package team.msg.domain.certifiacation.repository

import org.springframework.data.repository.CrudRepository
import team.msg.domain.certifiacation.model.Certification
import java.util.UUID

interface CertificationRepository : CrudRepository<Certification, UUID> {
}