Revision: 17293
http://sourceforge.net/p/gate/code/17293
Author: valyt
Date: 2014-02-13 11:10:05 +0000 (Thu, 13 Feb 2014)
Log Message:
-----------
Merged bugfix from trunk.
Modified Paths:
--------------
mimir/branches/5.0/mimir-cloud/grails-app/conf/spring/resources.groovy
Modified: mimir/branches/5.0/mimir-cloud/grails-app/conf/spring/resources.groovy
===================================================================
--- mimir/branches/5.0/mimir-cloud/grails-app/conf/spring/resources.groovy
2014-02-12 13:49:19 UTC (rev 17292)
+++ mimir/branches/5.0/mimir-cloud/grails-app/conf/spring/resources.groovy
2014-02-13 11:10:05 UTC (rev 17293)
@@ -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.
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs