2016-01-12 24 views
1

我正在將groovy應用程序中的mongoDB遷移到PostgreSQL。我是groovy平臺的新手。在常規文件的一個他們是:從MongoDB遷移到PostgreSQL Groovy應用程序

靜態mapWith =「蒙戈」

我究竟還不清楚這是什麼意思。據http://grails.github.io/grails-doc/3.0.x/ref/Domain%20Classes/mapWith.html

mapWith

目的

的mapWith靜態屬性增加,如果一個域名 類被持久化的控制能力。

例子

class Airport { 
    static mapWith = "none" 

} 

我也通過這個問題Remove simpledb mapWith by meta programming in dev mode

去了,我有一個想法,在我的Grails應用程序,

靜態mapWith = 「蒙戈」

可能正在使用mongoDB插件。我不知道我是否正確。那麼在PostgreSQL遷移中我需要做什麼?

回答

1

通常你必須刪除線,作爲基於SQL的格姆-ING默認的罰款

+0

請你能解釋更多,因爲我在刪除該行收到錯誤。 –

+0

請參閱http://grails.github.io/grails-data-mapping/latest/mongodb/manual/guide/gettingStarted.html#withHibernate – injecteer