Active Record's SessionScope in BL or DL ?
- by StupidDeveloper
Imagine that I have 3 projects:
DL, BL and WS.
DL contains Active Record implementation with all the mappings, BL has some logic (calling various DL methods) and finally WebService project exposes some BL methods (using some DTO mappings).
The questions are:
Should I put all data related methods in DL or is it allowed to use SessionScope in BL ? There are some complicated stuff that is right now done on BL.
Should/can BL operate on classes-mappings of the Active record? The question is where should be the translation to DTO be made (at the BL level? ) ?