Revision: 17278
http://sourceforge.net/p/gate/code/17278
Author: ian_roberts
Date: 2014-02-09 17:59:10 +0000 (Sun, 09 Feb 2014)
Log Message:
-----------
Re-instating archive delete event listener that somehow got lost in the
previous update.
Modified Paths:
--------------
mimir/trunk/mimir-cloud/grails-app/conf/spring/resources.groovy
Modified: mimir/trunk/mimir-cloud/grails-app/conf/spring/resources.groovy
===================================================================
--- mimir/trunk/mimir-cloud/grails-app/conf/spring/resources.groovy
2014-02-06 17:31:29 UTC (rev 17277)
+++ mimir/trunk/mimir-cloud/grails-app/conf/spring/resources.groovy
2014-02-09 17:59:10 UTC (rev 17278)
@@ -1,3 +1,17 @@
+import org.codehaus.groovy.grails.orm.hibernate.HibernateEventListeners;
+import gate.mimir.cloud.IndexArchiveCascadeDeleteListener;
+
// Place your Spring DSL code here
beans = {
+
+ // register the Hibernate event listener to delete archives
+ // when their corresponding indexes are deleted
+
+ indexArchiveCascadeDeleteListener(IndexArchiveCascadeDeleteListener) {
+ grailsApplication = ref('grailsApplication')
+ }
+
+ hibernateEventListeners(HibernateEventListeners) {
+ listenerMap = ['pre-delete':indexArchiveCascadeDeleteListener]
+ }
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs