How to determine the difference between a business model and a data model?

I see the term often used, as if a specific difference was being discussed between them when discussing MVC for OO languages. From what I get from the context, it is that business models perform the action of mutating data models. This is the right way to express the difference.

I suppose that confuses me, although most model models combine both of these roles on the surface, which she feels naturally. Often, methods that change the state of objects are inside these objects themselves. I guess I have a problem with an example of how this works in the real world. It seems more natural that the methods for changing an object are inside this object. Can someone explain this a little more clearly?

+5
source share
3 answers

Business models consist of how data flow moves within business functions. This does not take into account the data model, but helps determine how the data will be stored.

Data models are built with data in mind - where the logic of the business model is based on processes / procedures / just how everything is done, the data model is designed to structure the data in the most normalized way possible, which will reflect the needs of the business model.

0
source

"-" " " - "M" MVC. . , , , .

. ( - - XML), , . , Oracle RDBMS , - , - Oracle, , SQL, .. (, CRUD- SQL). , , , - ORM, ​​ Hibernate (Java), NHibernate (.NET) Doctrine (PHP).

" ", . -.

- . , , .

- - ​​ . , - CRUD-, , . , ( ).

, , , , (, ). , , - ( , , " ", , ).

, " " - . - , ActiveRecord Data Model, -. , .

+1

MVC -.

- , . , , .

- . , , , - . -, / .

- . - . , .

, - OO, . ( : M-N , , N-1 ).

- OO . ORM (Object-Relational-Mapping) .

- , , , MVC, . , . , .

, rsenna, , - -, , - , - . , , x , , ..

dba , -, . DBa , , , - - , dba , .

, - -, , , , (). , -, ..., , .

+1

All Articles