본문 바로가기

Server Oriented/Java & JSP

Java 에서 DTO, VO, @Entity 구분

- DTO (Data Transfer Object)

  계층간 데이타 교환용. @Getter @Setter

 

- VO (Value Object)

  데이타 참조용. @Getter, equals() hashCode()

 

- @Entity

  DB 매핑용. javax.persistence.*

 

- https://maenco.tistory.com/entry/Java-DTO와-VO의-차이

- https://velog.io/@livenow/Java-VOValue-Object란

- https://youngjinmo.github.io/2021/04/dto-vo-entity/