While reviewing spring data transactions, a service embeds raw entity-manager code. Which action fixes it, and which check proves it worked?
Answer options
- A. Wrap the use case in one transaction
- B. Fetch required data before mapping
- C. Move the query into a repository
- D. Verify the service depends on its contract