手机版
你好,游客 登录 注册
背景:
阅读新闻

Java的ORM框架 jOOQ 1.6.4 发布

[日期:2011-08-08] 来源:Linux社区  作者:Linux [字体:大 中 小]

jOOQ 高效的合并了复杂SQL、类型安全、源码生成、Active Records、存储过程以及高级数据类型的 Java 类库。

示例代码:

// 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
更多关于jOOQ的详细信息,或者下载地址请点 这里
linux
相关资讯       jOOQ 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款