An exception that is thrown when a persistent object that belongs to a specific session is used within another session or refers to an object from another session.
A persistent object can refer to another object if it belongs to the same session. Also an object can be used only within a session that it belongs to. If any of these rules are violated a SessionMixingException exception will be thrown.
- ensure that your code meets the rules described above.