My (non-standard) Layman definitions
POCO - Plain Old% Insert_Your_Language% Object. A type in which there is no logic. It just stores data in memory. Usually you see only auto properties in it, sometimes fields and constructors.Domain object instance of the class associated with your domain. I would probably exclude any satellite or service objects from the domain object, for example. in most cases, domain objects do not include such things as logging, formatting, serialization, encryption, etc. - unless you specifically create a product for registration, serialization, formatting or encryption, respectively.Model object I think this is the same as a Domain object . People tend to use this interchangeably (I may be wrong)Entity class that has idRepository class that speaks to the data store on the one hand (for example, a database, data service or ORM) and with a service, user interface, business layer, or any other requesting authority. It usually hides all data-related data (e.g., replication, pooling, key restrictions, transactions, etc.) and simplifies working with dataService software that provides some functionality, usually through an open API. Depending on the level, it can be, for example, a standalone RESTful container or a class that allows you to find a specific instance of the required type.
Original answer
These are terms that are mostly used in a (distributed) Driven Driven Design project. They are not the same. The term model Object can be used as a synonym for a domain object.
Domain Objects Objects from the field of business that represent something meaningful to a domain expert. Domain objects are mainly represented by value objects and objects. Speaking of a common language, most of the objects that live in the domain layer contribute to the model and are domain objects.
Entity An object fundamentally determined not by its attributes, but by a stream of continuity and identity. (The value must have Id )
POCO. A simple object without complex logic that does not require identification, usually it has only a few properties and is used with ORM or as a data transfer object
class Person - Entity and POCO, an instance of this class - Object Object
class PersonService - Service
class PersonRepository - Repository
oleksii May 27 '11 at 15:42 2011-05-27 15:42
source share