@ModelAttribute detached object binding from <form:form> tag has a problem [SPR-9354] #13992
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: data
Issues in data modules (jdbc, orm, oxm, tx)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
spring-projects-issues commentedApr 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.5http://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
The text was updated successfully, but these errors were encountered: