Title:
Bug 82326:(Watson Migration Closure)Provide a tag (or other mechanism) to easily run ORM code within a new Hibernate session, similar to "withNewSession" in Grails (see link)
| View in TrackerStatus/Resolution/Reason: Closed/Deferred/
Reporter/Name(from Bugbase): Mike Nicholls / Mike Nicholls (mikenicholls)
Created: 03/03/2010
Components: ORM Support
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,251028 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Provide a tag (or other mechanism) to easily run ORM code within a new Hibernate session, similar to "withNewSession" in Grails (see link).At the moment it can be difficult to load, update or delete other entities from within ORM event handlers. If you don't create a new session using the SessionFactory and manually perform operations using that (instead of using the built-in ORM functions), it is easy to trigger Hibernate assertions complaining about unsafe use of the session.
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041067
External Customer Info:
External Company:
External Customer Name: Mike Nicholls
External Customer Email: 1932664644160A2F992015D5
External Test Config: 03/03/2010
Attachments:
Comments: