Home / CSE MCQs / Spring MCQs :: Discussion

Discussion :: Spring MCQs

  1. DAO methods require access to the session factory, which can be injected:-
  2. A.
    a setter method
    B.
    constructor argument
    C.
    none of the mentioned
    D.
    all of the mentioned

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    To use the contextual session approach, your DAO methods require access to the session factory, which can be injected via a setter method or a constructor argument.


Be The First To Comment