Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Business objects vs. entities [closed]

Tags:

oop

Is there a difference between a business object and an entity?

If I were to define a POCO type of class, say a Product class, would that be a business object or an entity?

public class Product {
    public int ID { get; set; }
    public string Name { get; set; }
    public double Price { get; set; }
    public string Sku { get; set; }
}

Note there is no functionality within this object.

like image 608
Ian Suttle Avatar asked Mar 08 '09 10:03

Ian Suttle


People also ask

What is the difference between an object and an entity?

Entity is a real time object that can be distinguised from other objects. Object is an entity that has all the attributes and the actions required to be taken.

What is a business object entity?

Entity objects are classes that encapsulate the business model, including rules, data, relationships, and persistence behavior, for items that are used in your business application. For example, entity objects can represent. the logical structure of the business, such as product lines, departments, sales, and regions.

What is a business object example?

A business object when used in object-oriented programming, is a representation of parts of a business, A business object may represent, for example, a person, place, event, business process, or concept and exist as for example and invoice, a product, a transaction or even details of a person.

What are business objects used for?

What is SAP BusinessObjects Business Intelligence? SAP BusinessObjects Business Intelligence is a centralized suite for data reporting, visualization, and sharing. As the on-premise BI layer for SAP's Business Technology Platform, it transforms data into useful insights, available anytime, anywhere.


1 Answers

I would call it a DTO (Data Transfer Object). I have also seen them called "Property Classes" in times past. I would NOT call it a Business Object because it has no behavior and by definition BO's are defined by their behavior.

like image 84
DancesWithBamboo Avatar answered Sep 21 '22 16:09

DancesWithBamboo