강의

멘토링

로드맵

인프런 커뮤니티 질문&답변

dlektl6님의 프로필 이미지
dlektl6

작성한 질문수

자바 ORM 표준 JPA 프로그래밍 - 기본편

실전 예제 1 - 요구사항 분석과 기본 매핑

테이블 설계부분에 대한 질문입니다.

작성

·

239

0

테이블 설계 할때, 주문상품이라는 모델을 만들어 다대다 관계를 일대다 / 다대일 관계로 풀어냈는데 이러한 작업을 통해서 얻는 효과가 뭔지 궁금합니다! 

퀴즈

A class using the `@Entity` annotation for JPA mapping must basically meet these important conditions: 1. It must have a no-argument constructor (default constructor). 2. It must have a field representing the primary key, usually marked with the `@Id` annotation. 3. The class itself cannot be `final`. 4. It cannot be an `enum` or an `interface`.

All fields must be public

must be a final class

Must have a public or protected default constructor

must include at least one static method

답변 1

1

안녕하세요, dlektl6 님. 공식 서포터즈 codesweaver 입니다.
.
아래의 링크 중 '다대다 관계'를 참조하여 주세요

https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=damoen7&logNo=221406926750
.
감사합니다.

dlektl6님의 프로필 이미지
dlektl6

작성한 질문수

질문하기