Skip to content

Comments

Fix - Entity 상속관계 수정#25

Open
HighandLight wants to merge 2 commits intodevfrom
feature/fix-prompt
Open

Fix - Entity 상속관계 수정#25
HighandLight wants to merge 2 commits intodevfrom
feature/fix-prompt

Conversation

@HighandLight
Copy link
Contributor

개요

  • 기존 Category, PormtEntity가 BaseEntity 상속받도록 구조 변경
  • CategoryEntity에 parent_id칼럼 추가
    • 어떤 카테고리의 하위 카테고리인지 정보 저장(ex. 개발/백엔드, 개발/프론트엔드)

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가
  • 버그 수정
  • 코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경)
  • 코드 리팩토링
  • 주석 추가 및 수정
  • 문서 수정
  • 테스트 추가, 테스트 리팩토링
  • 빌드 부분 혹은 패키지 매니저 수정
  • 파일 혹은 폴더명 수정
  • 파일 혹은 폴더 삭제

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다. Commit message convention 참고 (Ctrl + 클릭하세요.)
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트)

Copy link
Collaborator

@HyeonSeongIM HyeonSeongIM left a comment

Choose a reason for hiding this comment

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

답변 부탁드립니다!

@Table(
name = "prompt_statuses",
uniqueConstraints = {
@UniqueConstraint(name = "uk_prompt_statuses_prompt_id", columnNames = {"prompt_id"})
Copy link
Collaborator

Choose a reason for hiding this comment

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

이게 의도가 OneToOne 매핑도 걸려있는데 prompt_id가 중복이 안 시켤려고 한건가요?

}

//프롬프트 생성 시 또는 status 테이블과 연결 시
public void attachStatus(PromptStatusEntity statusEntity) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

뭘 연결한다는거죠...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants