wultra / powerauth-webflow

PowerAuth Web Authentication - Federated Authentication and Authorization Server for Web
GNU Affero General Public License v3.0
10 stars 9 forks source link

Use different classes for repository objects and network objects #39

Open petrdvorak opened 7 years ago

petrdvorak commented 7 years ago

We currently reuse database objects in networking on several places. In the long term, this will cause us issues with extending the objects.

We should create specific classes for specific layers for the same purpose object types, for example: OperationPO (persistent object), OperationTO (transfer object), etc.

petrdvorak commented 7 years ago

See also: http://www.programering.com/a/MDM2kjNwATc.html

petrdvorak commented 7 years ago

Note: We should also make sure we do not reuse objects from different modules, or that we are aware of using "shared objects". For example, we currently heavily use NextStep request/response/entity objects in Web Flow...