Skip to content

Commit

Permalink
dksl gk...
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo committed Feb 3, 2024
1 parent f3a3b58 commit dd00296
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import javax.validation.constraints.Pattern
import javax.validation.constraints.Size

data class SignUpRequest(

// @field:NotBlank(message = "null이 될 수 없습니다.")
@field:NotBlank(message = "null이 될 수 없습니다.")
@field:Size(min = 2, max = 4, message = "이름은 2자 ~ 4자입니다.")
val studentName: String,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AuthServiceImpl(
override fun signup(request: SignUpRequest) {

userRepository.save(User(
studentName = request.studentName,
studentName = request.studentName!!,
accountId = request.accountId!!,
password = passwordEncoder.encode(request.password!!),
schoolGcn = request.schoolGcn!!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class User (
var id: UUID? = id
protected set

@Column(name = "studentName", columnDefinition = "CHAR(4)")
@Column(name = "studentName", columnDefinition = "CHAR(4)", nullable = false)
var studentName: String = studentName
protected set

Expand Down

0 comments on commit dd00296

Please sign in to comment.