Skip to content

Commit

Permalink
fix: #10 @id 어노테이션 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tnals2384 committed Feb 25, 2024
1 parent 363eb45 commit 5b2600b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.server.capple.domain.answer.entity;

import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

@Getter
Expand All @@ -13,6 +13,7 @@
@AllArgsConstructor
@RedisHash("AnswerHeart")
public class AnswerHeart {

@Id
private Long answerId;
private Long memberId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.server.capple.domain.question.entity;

import jakarta.persistence.Id;
import org.springframework.data.annotation.Id;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/server/capple/domain/tag/Tag.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.server.capple.domain.tag;

import jakarta.persistence.Id;
import org.springframework.data.annotation.Id;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
Expand Down

0 comments on commit 5b2600b

Please sign in to comment.