Skip to content

How to split the code.

2013-08-18 22:30:45

unfinished, draft Controller - get data from service

Service - get data from repozytory - filter, modify or change format (List->Map) to other format data from repozytory

Repozytory - get data form EntityManager - one place where "EntityManager" can be used - returns the unmodified data from the database

Entity Dto - I/O Object - With anotaton JSR 303 - with method "isValid"