Forums Register Login

Questions on design patterns

+Pie Number of slices to send: Send
(1) From a high level architecture view, why do we need to know design patterns? For example, take a look at the template method pattern. If you are doing architecture, how can this pattern be useful at this level?

(2) From my understanding, the term "business objects" is the same as "domain objects", which refers to entity class objects (example: Part, Supplier and Shipment, etc). Then what is the Business Object Pattern?
+Pie Number of slices to send: Send
1. If you do detailed architecture and design, it's good to know design patterns.

2. Business Object is one of Core J2EE patterns.
If you mean domain models, they aren't need to be Entities, they can be Value Objects or Services, you can read Domain-Driven Design for more detail.
+Pie Number of slices to send: Send
The definition of business objects from this web site: http://en.wikipedia.org/wiki/Business_object_(computer_science):

Business objects are objects in an object-oriented computer program that represent the entities in the business domain that the program is designed to support. For example, an order entry program might have business objects to represent each orders, line items, and invoices.

Business objects are sometimes called domain objects; a domain model represents the set of domain objects and the relationships between them.



According to the definition, business objects are just objects, not patterns. Then what is this Business Object pattern that is mentioned in the core J2EE pattern?
+Pie Number of slices to send: Send
First thing, don't trust anything in Wikipedia. Second, when read Wikipedia, take a look at reference section, you may get idea should you trust.

About your question, I will explain using metaphor.

Do you know Design Patterns [GoF]? I look up word "strategy" in a dictionary it means "a plan designed to achieve a particular long-term aim", from definition it's not a pattern, so what is Strategy pattern?

In short, it's only NAME. Business Object (pattern) is only a pattern's NAME that Sun thought it's a good name.
rubbery bacon. crispy tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1183 times.
Similar Threads
diff between architectural pattern,design pattern and architecture
Enterprise Patterns and MDA: Building Better Software with Archetype Patterns and UML
Relationship between Model (in MVC) and DAO
overdoing patterns
To the authors: How to customize Archetype Pattern
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:04:26.