これは見やすい!
class Company {
static mapping = {
table "T_COMPANY"
id generator:'sequence', params:[sequence:'company_id_seq']
}
String name
String description
String createdUser
String updatedUser
Date dateCreated
Date lastUpdated
static constraints = {
name(nullable:false)
description(nullable:false)
createdUser(nullable:true)
updatedUser(nullable:true)
}
String toString(){
return name
}
}
0 件のコメント:
コメントを投稿