Difference between DTO, VO, POJO, JavaBeans?

后端 未结 7 1917
误落风尘
误落风尘 2020-11-22 07:46

Have seen some similar questions:

  • What is the difference between a JavaBean and a POJO?
  • What is the Difference Between POJO (Plain Old Java Object) an
7条回答
  •  再見小時候
    2020-11-22 08:15

    • Value Object : Use when need to measure the objects' equality based on the objects' value.
    • Data Transfer Object : Pass data with multiple attributes in one shot from client to server across layer, to avoid multiple calls to remote server.
    • Plain Old Java Object : It's like simple class which properties, public no-arg constructor. As we declare for JPA entity.

    difference-between-value-object-pattern-and-data-transfer-pattern

提交回复
热议问题