Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open-in-view turn off issue #3728

Closed
BooAndBoCai opened this issue Dec 31, 2024 · 1 comment
Closed

Open-in-view turn off issue #3728

BooAndBoCai opened this issue Dec 31, 2024 · 1 comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com

Comments

@BooAndBoCai
Copy link

when i want to try close spring.jpa.open-in-view=false , i found my save method can't work .

Spring data-jpa version:
spring-boot-start-data-jpa:3.3.5

application.yaml config

jpa: show-sql: true open-in-view: false

two different in picutre
when close open in view config ,no log output
c2ac141c168ed3c832d5680ec6f42c93

when open 'open in view config' , execute sql
6b743f9e42f61e383f8b2f602f087c77

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 31, 2024
@schauder
Copy link
Contributor

schauder commented Jan 2, 2025

Please provide code and error messages always as properly formatted text, when posting on issue trackers, StackOverflow or similar.

I'm not sure what the exact problem is you are referring to, but the error message I found in the second image says, that there is a table missing. This could be due to an in memory database shutting down, when the connection gets closed.

Either way this does not seem to be a Spring Data or even Spring issue, but a configuration or usage issue on your side. That JPA changes its behaviour when sessions get closed is to be expected. Please consult JPA/Hibernate documentation or resources like StackOverflow how to work with JPA.

@schauder schauder closed this as completed Jan 2, 2025
@schauder schauder added for: stackoverflow A question that's better suited to stackoverflow.com and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 2, 2025
@schauder schauder closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

3 participants