私はこのアーキテクチャを行うことを考えています
genericdao + interface ---> servicelayer + interface ---> view layer
私のdaoには一般的なメソッドしかなく、たとえばサービスレイヤーには実際のロジックがあります
サービスレイヤー方式
string executeThis= "select c from com.abc.test.User where username =:username";
Map tempMap = new HashMap();
tempMap.put("username","abc");
return callDaoInferface.executeGenericList(executeThis,tempMap); //get from DI
これは良いアーキテクチャですか
私の質問は、「select..」ステートメントをdaoからサービスレイヤーに移動するのに適しているかどうかです。