posts - 431,  comments - 344,  trackbacks - 0
          公告
           Don't Repeat Yourself
          座右銘:you can lose your money, you can spent all of it, and if you work hard you get it all back. But if you waste your time, you're never gonna get it back.
          公告本博客在此聲明部分文章為轉摘,只做資料收集使用。


          微信: szhourui
          QQ:109450684
          Email
          lsi.zhourui@gmail.com
          <2008年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          留言簿(15)

          隨筆分類(1019)

          文章分類(3)

          文章檔案(21)

          收藏夾

          Link

          好友博客

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 865182
          • 排名 - 44

          最新評論

          閱讀排行榜

          class Country {
              String id
              String name
              Boolean active = true

              static mapping = {
                   id generator:'uuid.hex', params:[separator:'-']
              }
          }

          params:[separator:'-']為主鍵中間使用"-"分隔, 比如生成格式為: 2c9d004d-1b247311-011b-2473734f-0001
          當然可以去掉params:[separator:'-']直接寫成

          class Country {
              String id
              String name
              Boolean active = true

              static mapping = {
                   id generator:'uuid.hex'
              }
          }
          這樣就生成格式為: 2c9d004d1b247311011b2473ebf90003

          posted on 2008-07-15 10:05 周銳 閱讀(671) 評論(0)  編輯  收藏 所屬分類: Groovy&Grails
          主站蜘蛛池模板: 怀远县| 桑植县| 咸宁市| 伊春市| 民县| 塔城市| 曲麻莱县| 临武县| 香格里拉县| 巴中市| 得荣县| 平山县| 台中县| 元江| 乐亭县| 公安县| 郎溪县| 黄浦区| 安顺市| 赤壁市| 曲沃县| 饶阳县| 长春市| 屏东县| 曲阜市| 栖霞市| 大姚县| 大冶市| 和顺县| 都匀市| 清涧县| 余干县| 镇原县| 临沭县| 高台县| 台州市| 万载县| 雷波县| 尼玛县| 米脂县| 黄陵县|