MyBatis JPA Extra,MyBatis JPA 扩展 v2.1发布

栏目: 软件资讯 · 发布时间: 6年前

内容简介:MyBatis JPA Extra对MyBatis进行了扩展,目的在于简化开发的难度,单表操作支持JPA 2.1,采用了JPA 2.1的注释,无需配置映射的XML文件,使用插件的方式动态生成SQL语句,实现对单表的操作的简化;另外使用Interce...

MyBatis JPA Extra对MyBatis进行了扩展,目的在于简化开发的难度,单表操作支持JPA 2.1,采用了JPA 2.1的注释,无需配置映射的XML文件,使用插件的方式动态生成 SQL 语句,实现对单表的操作的简化;另外使用Interceptor拦截需要分页的SELECT查询语句,根据不同的数据库完成分页查询,支持 spring-boot-starter,集成更加方便 。

项目地址

1、JavaBean注释简单

只支持4个注释

  • @Table
  • @Id
  • @Column
  • @GeneratedValue

@GeneratedValue有3中策略

  1. AUTO

    uuid

    uuid.hex

    serial

  2. SEQUENCE

    generator值为数据库序列名

  3. IDENTITY

    generator无,根据数据库自动生成方式


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Coming of Age in Second Life

Coming of Age in Second Life

Tom Boellstorff / Princeton University Press / 2008-04-21 / USD 29.95

The gap between the virtual and the physical, and its effect on the ideas of personhood and relationships, is the most interesting aspect of Boellstorff's analysis... Boellstorff's portrayal of a virt......一起来看看 《Coming of Age in Second Life》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试