Table Module and Data Table Templates

I am studying j2ee templates, can someone tell me what are the differences between a table module (domain logic) and a table data gateway (data source template)? Thanks you

+3
source share
2 answers

The Table Module and Table Data Gateway are table level templates, but with a very significant difference.

A table module is a logical domain template in the sense that it can contain BUSINESS LOGIC related to a specific table. The Data Data Gateway is for the database interface only and should not contain business logic. Read the "database interface" here as "insert / update / delete / read rows from table".

, .

Table Module: , - .

Table Data Gateway: , . . ( "" CRUD).

+6

.

.

, mvc.

+1

All Articles