Skip to content

[REFACTOR] ANSWER_RANKING_ENTITY 로직 분리 #90

@coli-geonwoo

Description

@coli-geonwoo

문제 상황

유저 테스트를 위한 자동저장 로직 테스트 중 에러 발생

Image

에러 원인

  • 유저의 답변 내용인 content가 varchar(255)로 선언되어 255자 이상인 답변에 대해서는 ConstraintViolationException 발생

해결 방향

  • content 필드를 TEXT로 변경
  • 유저 답변의 최신 랭킹 저장 유무가 유저 답변 저장에 영향을 미치지 못하도록 TransactionEventListener로 유저 답변 트랜잭션 저장 커밋 시. > 유저 답변 랭킹을 커밋하도록 수정

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions