diff --git a/backend/src/main/java/com/funeat/product/domain/Product.java b/backend/src/main/java/com/funeat/product/domain/Product.java index a8f7cf07d..eca71a02d 100644 --- a/backend/src/main/java/com/funeat/product/domain/Product.java +++ b/backend/src/main/java/com/funeat/product/domain/Product.java @@ -44,7 +44,7 @@ public class Product { @OneToMany(mappedBy = "product") private List productBookmarks; - private AtomicLong reviewCount = new AtomicLong(0); + private Long reviewCount = 0L; protected Product() { } @@ -112,10 +112,10 @@ public Category getCategory() { } public Long getReviewCount() { - return reviewCount.get(); + return reviewCount; } public void addReviewCount() { - reviewCount.incrementAndGet(); + reviewCount++; } }