How to map Grails domain object to a specific mongodb table name -


i've setup simple grails app looking @ mongodb.

my domain object looks this:

class googlesearch {     string _id;     string id;     string query;     string site;     object results;     date date;      static mapping = {         table 'google_searches'     }      static constraints = {     } } 

however when run grails app up, keeps reading/writing table named "googlesearch"

does know how can override default naming? gorm/mongodb thing?

cheers

basics of mongodb. there no concept of table. collections. :)
refer mapping collection 'google_searches'.

for more details can refer grails mongodb plugin.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -