✏️ Explanatory Question

Why is canRunInNewSession() method overridden in the controller class?

👁 3 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

It defines whether the operation should execute in a new session.
In your code:


protected boolean canRunInNewSession()
{
    return false;
}

means the operation runs in the same session, not a separate one.