You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor CRUD Operations to Utilize SessionContextHolder for Session Management
- Updated CRUD methods in `PySpringModelRestService` and `CrudRepositoryImplementationService` to use `SessionContextHolder` for session handling, replacing the previous context manager approach.
- Added `@Transactional` decorator to relevant methods to ensure proper transaction management.
- Enhanced error handling in the `Transactional` decorator to raise specific exceptions.
- Updated tests to clear session state before and after tests to maintain isolation and prevent side effects.
Copy file name to clipboardExpand all lines: py_spring_model/py_spring_model_rest/service/curd_repository_implementation_service/crud_repository_implementation_service.py
0 commit comments