1、 public class HistoryListener implements PostDeleteEventListener {
/** * */ private static final long serialVersionUID = -3371146583496621340L;
@Override public void onPostDelete(PostDeleteEvent event) { //TODO LOG } }
2、 <bean id="historyListener" class="com.newtouch.framework.listener.HistoryListener" ></bean>
3、 <property name="eventListeners"> <map> <entry key="post-delete"> <ref bean="historyListener" /> </entry> </map> </property>
Question:
Normal deletion, logging, there is no problem, but when I delete an exception (a foreign-key associations), or will perform onPostDelete method, and log,
May I ask how to solve? Thank you !
|