|
From: <no...@at...> - 2005-03-31 20:41:04
|
Message: The following issue has been reopened. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HHH-292 Here is an overview of the issue: --------------------------------------------------------------------- Key: HHH-292 Summary: No "save" listener in the Configuration Type: Bug Status: Reopened Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate3 Fix Fors: 3.0 final Versions: 3.0 rc 1 Assignee: Gavin King Reporter: Matthew Inger Created: Wed, 30 Mar 2005 12:46 PM Updated: Thu, 31 Mar 2005 2:39 PM Description: After trying this, and reviewing the code, i've noticed that the Configuration object does not pay attention to the "save" listener in the Configuration.buildListenerConfig() method. As a result, the SessionEventListenerConfig.setSaveEventListener() method is never called, and thus, one cannot respond to an object save. It is only possible to respond to a saveOrUpdate. adding the following condition in the buildListenerConfig method will fix the problem: else if ( "save".equals( type ) ) { sessionEventListenerConfig.setSaveEventListener( (SaveOrUpdateEventListener) listener); } --------------------------------------------------------------------- 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 |