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

@ModelAttribute detached object binding from <form:form> tag has a problem [SPR-9354] #13992

Closed
spring-projects-issues opened this issue Apr 30, 2012 · 2 comments
Assignees
Labels
in: core in: data in: web status: declined

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 30, 2012

Bilguun Bayarmagnai opened SPR-9354 and commented

After migrating to spring 3.1.0 from spring 3.0.5 hibernate save method is encountering problem with detached object - when trying to save new object with saveOrUpdate(Object obj) method where obj has no id.

Class A has Set of Class B. when trying to save new instance of class B from <form:form modelAttribute="b"> and via @ModelAttribute("b") it's overriding all the previous set of b's (Set<B>) from class A. Unit testing has no issues, so it could be webmvc issue. It used work perfectly fine with 3.0.5

http://forum.springsource.org/showthread.php?125940 refer to this forum thread for detailed information.


Affects: 3.1.1

Reference URL: http://forum.springsource.org/showthread.php?125940

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented May 10, 2012

Bilguun Bayarmagnai commented

I figured out the problem.
The new feature binding @PathVariable to @ModelAttribute got me confused. So I guess I have close this issue but I can't find?

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented May 11, 2012

Rossen Stoyanchev commented

I'll do that and would you mind adding a small amount of detail for future reference and for our benefit?

@spring-projects-issues spring-projects-issues added type: bug status: declined in: data in: core in: web labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: bug label Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core in: data in: web status: declined
Projects
None yet
Development

No branches or pull requests

2 participants