Grails 2.1, MongoDB - create domain object on fly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Grails 2.1, MongoDB - create domain object on fly

lazaruses
how can I create domain object on fly (in bootstrap) with mongoDB using string like this:

package org.closer

class Book{
String title
}