Quantcast

Grails + MongoDB cascade delete and default sort

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Grails + MongoDB cascade delete and default sort

erickmelo
Hi guys,

I'm having problems to the Mongo cascade.. I have a oneToMany relationship:


class Person{
 static hasMany=[documents:Document]
}

class Document{
static belongsTo=[person:Person]
}

When ai delete the Person, its documents should also  be deleted. But
it is not being done. I have a reference in the Document to a
non-existent People...

Am I doing something wrong? Does mongodb plugin support this feature?


Other question:
How to say to the mongodb plugin what is the default sort order of a
Domain Class? With hibernate I use the "sort" attribute on mapping...
I tried the same with mongo but isn't working..

[]s
Erick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...