chore: update

This commit is contained in:
TakahashiNg
2026-05-15 00:09:44 +00:00
parent 646cecf41a
commit 4b3662ba1f
2 changed files with 2 additions and 8 deletions
@@ -19,7 +19,7 @@ public class ReviewEntity extends BaseEntity implements ReviewInterface {
public UUID reviewerId;
@ManyToOne(fetch = FetchType.LAZY)
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "eateryId")
public EateryEntity eatery;
@@ -45,13 +45,7 @@ public class ReviewService {
};
return Response.ok()
.entity(
ReviewEntity.find(
"FROM ReviewEntity r LEFT JOIN FETCH r.eatery WHERE r.eatery.id = ?1",
sort,
eateryId
).list()
)
.entity(ReviewEntity.find("eatery.id = ?1", sort, eateryId).list())
.build();
}