dtos
DTOs don't have any logic. They only have fields (state). They are used when transferring data from one layer/subsystem to anotherdomain
Domain objects can have logic (depending on whether you are using domain-driven design or have anemic data model) and they are usually related to the database structure.entity
JPA用来定义表model
mvc
强调保存view层的数据
domain model entity dto
最新推荐文章于 2024-04-24 14:30:00 发布