java - Is it not a good practice to have logic in dao side? -
i have entity a , a has set of entity b. lazy loading. when load of a results list need have transient value each a has size of b a.
in service layer can not performed lazy loading. have set transient value in dao side. have heard not have logic in dao side.
what should do? explanation appreciated.
if @ hibernate count collection size without initializing can have lazily loaded collection loaded size
which seems meet requirements...
Comments
Post a Comment