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的详细信息,或者下载地址请点 这里
