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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -