<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                模板自增主鍵代碼是寫在每個模板中的,是被注釋掉的。需要把注釋去掉,把原來的返回語句注釋掉。 ~~~ // 插入 public int insert(Book entity) throws DataAccessException { // 這段注釋代碼是“返回自增主鍵”的方法 String entityName = entity.getClass().getSimpleName(); ResultMo mo = this.mlinktemplate.executeTemplate(ITemplate.FUNC_INSERT, entityName, null, entity); if (mo != null) { Integer auto = mo.getAutoIncrementId(); if (auto != null) { return auto.intValue(); } return -1; } return -1; //return this.mlinktemplate.insert(entity); } ~~~ public void billInsert() throws DataAccessException { System.out.println("---------------------------------"); int random = (int)(1+Math.random()*(9999-1+1)); Bill entity = new Bill(); entity.setBillId(5337L); entity.setHid(random); entity.setMemo("d7777ddyyyyyddddddddddddddd"); BillTemplate billtemplate = new BillTemplate(mlinktemplate); billtemplate.insert(entity); Bill bill = billtemplate.get(5337L, 55577767); System.out.println("bill>>"+bill); } public void bookInsert2() throws DataAccessException { System.out.println("---------------------------------"); BookTemplate template = new BookTemplate(mlinktemplate); Book entity = new Book(); entity.setBookName("MLINK模板的應用"); Long auto = new Long(template.insert(entity)); System.out.println("auto>>"+auto); Book Book = template.get(5); System.out.println("Book>>"+Book); }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看