From: <leg...@at...> - 2003-07-29 17:06:31
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-219 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-219 Summary: Add Session.isDirty(Object) method Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0.2 Assignee: Reporter: Stephen Molitor Created: Tue, 29 Jul 2003 12:03 PM Updated: Tue, 29 Jul 2003 12:03 PM Description: Add an 'isDirty(Object)' method to net.sf.hibernate.Session interface, and net.sf.hibernate.impl.SessionImpl. This method would expose the logic on lines 2175-2200 of SessionImpl.java. This would allow applications to check or perform operations on dirty objects before flushing changes. For example, this would allow an app to validate all dirty entities before flushing, and the validation method could invoke session methods or trigger lazy loads. All of the validation errors could be collected for reporting to the user. If there were validation errors, the app would not invoke flush. This would allow the app to forward back to the input page and display the *current* state (without flushing, since there were errors) of the session / db to the user. There could be other uses for an 'isDirty' method as well. Thanks for your consideration. Steve Molitor --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |