Learn Struts (5) -struts model assembly

xiaoxiao2021-03-06  138

1. Model concept:

The model represents the application's business data and logic. It contains business entities and business rules, responsible for accessing and updating persistence data.

2. Model type:

a. Conceptual model (analysis phase): Used to simulate real entities in the problem domain, which describes the concept and attributes of each entity, and

The relationship between body. However, the behavior of the entity is not described at this stage.

b. Design model (design phase): Created on the basis of a conceptual model. Contains the behavior of the entity.

3. Business object (bo):

It is the software abstraction of real-world entities, including status and behavior.

Judging whether a class can become an important criterion for business objects, it is to see if this class has status and behavior.

Business objects can be divided into three types:

a. Entity business object: Noun in the business field

b. Process business object: representing business processes or processes in applications, verbs in business areas

C. Time business object: some events in the app (such as exception, warning, or timeout)

4. In this chapter, many useful UML, ORM framework knowledge, and the configuration of the specific persistence framework are used.

转载请注明原文地址:https://www.9cbs.com/read-98165.html

New Post(0)