domain mapping、constraints设置

it2022-05-09  23

static mapping = {     table 'some_other_table_name'     columns {       name column:'airline_name'       url column:'link'       frequentFlyer column:'ff_id'     }   }     static constraints = {     name(blank:false, maxSize:100)     url(url:true)     frequentFlyer(blank:true)     notes(maxSize:1500)   }   static mapping = { // table 'some_other_table_name'   columns {    entyer column:'enterId'    keeper column:'keeperId'    purchaser column:'buyerId'    borrower column:'borrowId'   }  }

转载于:https://www.cnblogs.com/zhouweiye/p/3594069.html

相关资源:数据结构—成绩单生成器

最新回复(0)