Fix transactional and getSession.

Need fix validation.