• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #5089

25 Mar 2026 08:38AM UTC coverage: 41.901% (+0.08%) from 41.822%
#5089

push

github

topframe
Improve MyBatis transaction management with lazy session opening and intelligent routing

- Implement lazy session opening in SqlSessionAdvice to defer DB connection until actual usage
- Introduce intelligent routing in SqlSessionProvider to reuse open writable sessions by default
- Add 'reuseWritable' option to support both strict and intelligent routing modes
- Support stack-based aspect tracking to correctly handle nested transactions within an activity
- Optimize SqlSessionAgent to prevent premature session creation in getMapper() and getConfiguration()
- Enhance connection management by resetting read-only state before returning to the connection pool
- Provide specific error messages for resolving SqlSessionFactory in environments with multiple factories
- Refactor test suite to verify both strict and intelligent routing scenarios with descriptive naming
- Update documentation to reflect new flexibility in session opening strategies (Eager vs. Lazy)

15 of 27 new or added lines in 3 files covered. (55.56%)

81 existing lines in 5 files now uncovered.

17908 of 42739 relevant lines covered (41.9%)

0.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

59.84
/with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionAdvice.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc