Skip to content

Commit

Permalink
Merge pull request #25 from nunsongCookie/fix/24-fix-user-blank
Browse files Browse the repository at this point in the history
Fix/24 fix user blank
  • Loading branch information
Jixoo-IT authored Dec 26, 2024
2 parents b614ec0 + 7a7248b commit f0ae9fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package site.examready2025.quiz.domain.user.entity;

import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -21,6 +22,7 @@ public class User {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@NotBlank(message = "Name cannot be blank")
@Column(nullable = false, length = 15)
private String name;

Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spring:
hibernate.dialect: org.hibernate.dialect.MySQL8Dialect
hibernate.format_sql: true
hibernate.transaction.jta.platform: org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform
<<<<<<< Updated upstream

management:
endpoint:
Expand All @@ -21,4 +22,6 @@ management:
endpoints:
web:
exposure:
include: "health"
include: "health"
=======
>>>>>>> Stashed changes

0 comments on commit f0ae9fe

Please sign in to comment.