지난 번에 게시글로도 작성했었지만, DB에서 Status와 같은 성격을 띄는 컬럼에 대해서 다뤄본적이 있었다.VARCHAR로 관리할 지 vs Enum vs Tinyint, ...최근에 Hibernate를 활용한 새로운 접근(?)을 알게 되었고 꽤 인상깊어서 공유하고자 한다.Hibernate - Mapping ConstructJPA, Hibernate에는 세 가지 매핑 구조가 있다.Basic types (Integer, Long, String, CustomStatus)Embeddable types (@Embeddable 애노테이션처럼 여러 컬럼을 묶은 것)Entity types (테이블과 맵핑)맵핑할 타입이 더 컴팩트할 수록 더 높은 성능을 낼 수 있다.가령, Status라는 Enum이 있다면 String..