Skip to content

TestStatus 저장 시 매칭되지 않는 정보 저장 #90

Open
@ghkdqhrbals

Description

@ghkdqhrbals

일단 먼저 아래는 Test 정보가 저장되는 엔티티입니다.

public class TestStatus extends BaseTime {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "test_result_id", referencedColumnName = "id", nullable = false)
    private TestResult testResult;

    @Enumerated(EnumType.STRING)
    private HttpStatusCode code;

    private Integer count;

    @Lob
    private String message;

}

여기서 HttpStatusCode 를 저장하고 있는데, 해당 Enum 을 확인해보면 아래와 같이 설계되어있습니다.

public enum HttpStatusCode {
    GET,
    POST,
    PATCH,
    PUT,
    DELETE
}

의도한 바는 200, 204, 400, 404 와 같은 Http 상태코드가 저장되도록 int 형태입니다. 따라서 이 부분에서 수정이 필요할 것 같습니다!

일단 이 부분은 제외하고 사용자에게 데이터를 표시하도록 조치하겠습니다. // TODO 로 표시해놓고 추후 이 이슈를 해결하도록 할게요.

Metadata

Metadata

Labels

bugSomething isn't workingwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions