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

#46 [fix] inheriance 타입 수정 #48

Merged
merged 1 commit into from
Jan 8, 2024
Merged

#46 [fix] inheriance 타입 수정 #48

merged 1 commit into from
Jan 8, 2024

Conversation

KWY0218
Copy link
Member

@KWY0218 KWY0218 commented Jan 8, 2024

관련 이슈번호

해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)

  • 1h / 1h

해결하려는 문제가 무엇인가요?

  • single table 로 저장해서 model과 designer 엔티티가 합쳐진 문제가 발생했다.

어떻게 해결했나요?

  • @Inheritance(strategy = InheritanceType.JOINED) 어노테이션을 통해 각각의 테이블로 만들도록 구현했다.

@KWY0218 KWY0218 self-assigned this Jan 8, 2024
Copy link
Contributor

@pkl0912 pkl0912 left a comment

Choose a reason for hiding this comment

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

Inheritance 확인했습니다

Copy link
Member

@hellozo0 hellozo0 left a comment

Choose a reason for hiding this comment

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

확인했습니다~!

import jakarta.validation.constraints.NotNull;

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
Copy link
Member

Choose a reason for hiding this comment

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

해당 어노테이션 확인했습니다!

@KWY0218 KWY0218 merged commit 3256e62 into develop Jan 8, 2024
1 check passed
@hellozo0 hellozo0 added the fix label Jan 8, 2024
@KWY0218 KWY0218 deleted the feat/#46 branch January 8, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fix] 슈퍼 서브 타입 joined 설정
3 participants