私は Record クラスを次のように持っています:
class Record {
Date dateCreated
Date lastUpdated
def beforeInsert() {
dateCreated = new Date()
}
def beforeUpdate() {
lastUpdated = new Date()
}
static mapping = { tablePerHierarchy false }
}
そして、このクラスは他のいくつかのドメイン クラスに継承されます。たとえば、次のようになります。
class User extends Record{
String userName
String password
String email
}
ここでの私の質問は次のとおりです。レコードテーブルの列を、それを拡張するテーブルに埋め込む方法はありますか?