flux icon indicating copy to clipboard operation
flux copied to clipboard

Persistence layer in codebase

Open shyamakirala opened this issue 2 years ago • 1 comments

Currently, in the flux codebase, the resource and controller classes interact with DAO layer directly. This lacks good coding practices such as separation of concerns, extensibility, and readability. One way to solve this problem would be to introduce a persistence layer that would handle all the transactions by interacting with DAO layer. The communication would be like below with the new model.

Resource --> Controller --> Persistence Layer --> DAO layer

shyamakirala avatar Jan 28 '22 12:01 shyamakirala

I propose to implement this along the lines of JPA i.e. Entities, EntityManager, PersistenceProvider(s) and Criteria with a suitable Query language.

regunathb avatar Feb 01 '22 09:02 regunathb