What is the difference between POJO (Plain Old Jav

2019-01-17 11:38发布

I cannot find difference between them. Does anyone know how to differentiate them?

8条回答
beautiful°
2楼-- · 2019-01-17 12:25

DTO (Data transfer object) : Is a Core J2EE design pattern used for transferring data within the system.DTO Pattern


POJO (Plain Old Java Object) : It is just an acronym people use for suggesting that is a simple java object (which nowadays is heavily annotated for doing some meaning full work).

DTO Pattern
J2EE Pattern Catalog

查看更多
等我变得足够好
3楼-- · 2019-01-17 12:26

DTO is pojo, but pojo is not dto, because pojo can have more behavior but DTO just basically no behavior

Oracle document has clear description.

查看更多
登录 后发表回答