- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 264字
- 2021-07-23 16:54:58
Explaining the business-object pattern
As the name suggests, a business object represents something in the real world and something associated with the business of the application. A business object is like an actor in an application use case. Examples of business objects include bank accounts, car insurance, college professors, students, employees, purchase orders, and payable or receivable accounts.
When it comes to simple applications with very little business complexity, that is, with few (or no) business rules, there may not be a need for a BO in the system. Better yet, a POJO entity that represents a database entity can be considered a BO. It is important to see the difference here. An entity or a POJO representative of an entity (such as a JPA POJO ) is closer to the technology and structure than to a business-model object. So, for this example, an entity such as a college student can also be considered a BO or an actor of a college student use case. In fact, in these simpler cases where the data model is sufficient for the business, there is no need to define a business object.
In this case, we say that the data model related to the college student closely represents the conceptual domain model related to the student.
The application is often so simple that business-tier clients, such as a Session Fa?ade (or even presentation-tier clients), can directly access the data model through DAO. There is no need for a model object to handle greater complexity for the application business.
- Linux設(shè)備驅(qū)動開發(fā)詳解(第2版)
- Implementing Cisco UCS Solutions
- 大學(xué)計算機應(yīng)用基礎(chǔ)實踐教程(Windows 7+Office 2013)
- Extending Puppet
- Kubernetes網(wǎng)絡(luò)權(quán)威指南:基礎(chǔ)、原理與實踐
- VMware Horizon View 6 Desktop Virtualization Cookbook
- Instant Handlebars.js
- 混沌工程實戰(zhàn):手把手教你實現(xiàn)系統(tǒng)穩(wěn)定性
- 高性能Linux服務(wù)器構(gòu)建實戰(zhàn):系統(tǒng)安全、故障排查、自動化運維與集群架構(gòu)
- Moodle 3.x Teaching Techniques(Third Edition)
- Linux運維最佳實踐
- Mobile First Design with HTML5 and CSS3
- AWS Development Essentials
- OpenStack系統(tǒng)架構(gòu)設(shè)計實戰(zhàn)
- INSTANT Galleria Howto