Skip to content

Commit

Permalink
fix: rename the id field
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-soo708 committed Jan 11, 2025
1 parent 8e2d2d4 commit 01dbe0a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import jakarta.persistence.*
class ApplyMethodEntity (
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@Column(name = "apply_method_id")
val id: Long,

@Column(name = "phone_num", length = 50)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import jakarta.persistence.*
class ExperimentImageEntity(
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@Column(name = "experiment_image_id")
val id: Long,

@ManyToOne(fetch = FetchType.LAZY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import java.time.LocalDate
class ExperimentPostEntity(
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@Column(name = "experiment_post_id")
val id: Long,

@OneToOne(fetch = FetchType.LAZY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import jakarta.persistence.*
class TargetGroupEntity(
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@Column(name = "target_group_id")
val id: Long,

@Column(name = "start_age")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import jakarta.persistence.*
class MemberEntity(
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@Column(name = "member_id")
val id: Long = 0L,

@Column(name = "oauth_email", length = 100, nullable = false, unique = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.*

@Tag(name = "[연구자] 공고 등록 API - /v1/experiment-posts")
@RestController
@RequestMapping("/v1/expirement-posts")
@RequestMapping("/v1/experiment-posts")
class PostController (
private val postService: PostService
){
Expand Down

1 comment on commit 01dbe0a

@chock-cho
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostController Typo 수정 감사합니다! 😊😊

Please sign in to comment.