DAO原本設計成可以reuse的domain object,將Interface與Implementation分開,藉由config設定Implementation版本.
但萬一不同的AP共用同一個DAO,且使用的interface name不能重複,如何解決?
1.寫一個new interface繼承原有的interface
2.寫一個new class 繼承要使用版本的Implementation版本與implement new interface
3.config再對上述的new interface與new classs做連結
arrow
arrow
    全站熱搜

    Jemmy 發表在 痞客邦 留言(0) 人氣()