(快速參考)

mapWith

用途

mapWith 靜態屬性新增了控制網域類別是否持續存在的機制。

範例

class Airport {

    static mapWith = "none"

}

在此範例中,Airport 類別不會持續存在於資料庫中。