What volume should a DAO usually have

his question is that dao will not contain any state.

however, for the easiest access to the class, is it better to use a prototype (= new every time) or singleton?

making a simple object is cheap for dao's. Usually it has only a sessionfactory, accessing an object from the list of singles can be equally expensive.

clarfication: The focus of this question is if there is a general agreement with the domain of Taoism.

+1
source share

All Articles