Skip to content

Establish Transactional Boundaries & Disable OSIV #4

Description

@viceda-s

Problem: Missing @Transactional annotations mean data mutations are non-atomic, relying on the dangerous Open Session In View (OSIV) anti-pattern.

Acceptance Criteria:

  • Add @Transactional to all write operations in WorkoutService and AuthService.
  • Add spring.jpa.open-in-view=false to application.properties.
  • Run full integration tests to guarantee no LazyInitializationException is thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance and persistencetech-debtTechnical Debt

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions