inflearn logo
Khóa học

Khóa học

Chia sẻ kiến thức

Bài viết của 1026baby

1026baby 1026baby

@vanilla369

Số lượng đánh giá đã viết
1
Xếp hạng trung bình
5.0

Bài viết 4

Hỏi & Đáp

querydsl Embeddable 안에 Embeddable 조건안됨

QueryInit("*.*") 적용을 고려해보시길 바랍니다. https://querydsl.com/static/querydsl/2.1.2/apidocs/com/mysema/query/annotations/QueryInit.html By default Querydsl initializes only reference properties of the first two levels. In cases where longer initialization paths are required, these have to be annotated in the domain types via com.querydsl.core.annotations.QueryInit annotations. QueryInit is used on properties where deep initializations are needed. The following example demonstrates the usage. @Entity class Event { @QueryInit("customer.address") Account account; } @Entity class Account { Customer customer; } @Entity class Customer { String name; Address address; // ... } This example enforces the initialization of the account.customer path, when an Event path is initialized as a root path / variable. The path initialization format supports wildcards as well, e.g. "customer.*" or just "*" .

Lượt thích
0
Số bình luận
2
Lượt xem
542

Hỏi & Đáp

@Transactional을 붙였을 때"만" Stock 감소 검증에 성공합니다

아이고,,,이런,,, 서비스에 @Transactional 을 안 붙였네요,,,부끄럽네요 하하,, @Transactional 에 대해 더 자세하게 공부해보겠습니다!! // 혹시 저와 같은 실수 하시는 분 계실까봐 게시물은 남겨놓겠습니다!

Lượt thích
1
Số bình luận
2
Lượt xem
674

Hỏi & Đáp

Cannot resolve symbol 'EntityModel' (+ RepresentationModel)

https://docs.spring.io/spring-hateoas/docs/current/reference/html/ 위 레퍼런스를 찾아보니 HATEOAS에 대한 모델을 정의하고자할 때는 HATEOAS의 최상위 클래스인 RepresentationModel 을 상속받기를 권장하며, EntityModel은 단순한 하나의 객체로 반환할 때 사용하라고 나와있습니다. 아래 블로그도 찾아보시면 좋을 것 같네요 https://halfstorage.tistory.com/60

Lượt thích
0
Số bình luận
3
Lượt xem
792

Hỏi & Đáp

Cannot resolve symbol 'EntityModel' (+ RepresentationModel)

@인프런 AI 인턴 감사합니다. build.gradle들을 확인해보니 제대로 할 수 있었습니다. 다만 최근 EntityModel에 대한 표준이 바뀐 것 같아 아래 강사님의 답변을 참고하시면 좋을 것 같습니다. https://www.inflearn.com/questions/203512/entitymodel-deprecated-%EC%96%B4%EB%96%BB%EA%B2%8C-%EB%B0%94%EA%BE%B8%EB%A9%B4-%EB%90%A0%EA%B9%8C%EC%9A%94

Lượt thích
0
Số bình luận
3
Lượt xem
792