Active Record's SessionScope in BL or DL ?

Posted by StupidDeveloper on Stack Overflow See other posts from Stack Overflow or by StupidDeveloper
Published on 2010-06-10T10:57:58Z Indexed on 2010/06/10 11:02 UTC
Read the original article Hit count: 204

Filed under:
|
|

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:

  1. 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.

  2. 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? ) ?

© Stack Overflow or respective owner

Related posts about record

Related posts about active