Java的ORM框架 jOOQ 1.6.4 發布

fmms 13年前發布 | 7K 次閱讀 ORM Java

jOOQ 高效的合并了復雜SQL、類型安全、源碼生成、Active Records、存儲過程以及高級數據類型的 Java 類庫。
項目地址:http://sourceforge.net/apps/trac/jooq

示例代碼:

// Create a new record and insert it into the database
TBookRecord book = create.newRecord(T_BOOK);
book.setTitle("My first book");
book.store();

// Update it with new values
book.setPublishedIn(2010);
book.store();

// Delete it
book.delete();

該版本引入了來自其他框架的不少靈感,例如:

  • #selecting into custom POJOs is possible.
  • Results can be mapped to POJOs by convention or using JPA @Column annotations.
  • #selecting into custom callbacks, which is already a wide-spread practice in Spring JdbcTemplates.
  • #selecting long-running queries asynchronously, an idea inspired by the Avaje Ebean framework.
  • Apart from these changes and some bugfixes, the internal API has been completely redesigned

 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!