Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クラスCtr_country {
String ctr_name String ctr_abrev String toString(){ ctr_abrev } }
データベースとして SQLS Express を使用しています。このクラス(テーブル)の主キーをctr_abrevにしたいです。
a) どうすればできますか?
static mapping = { id generator:'assigned', name:'ctr_abrev' }
Grails Docs GORM id