为什么80%的码农都做不了架构师?>>>   

JPA 2.1: Overview

JPA 2.1 bring small improvement to JPA 2.0, I have written a series of posts to introduce it.

  • Schema generation scripts configuration
  • Attribute Converter
  • Bulk Criterial Update and Delete API
  • Entity Graph
  • Synchronized Persistence Contexts
  • Treat
  • CDI support

JPA 2.1 also includes some RDBMS improvements, such as supports Store Procedure, and adds function in JPQL. I am not a big fan of RDBMS, so it is not so attractive for me.

In this version, some features are still not perfect, as I motioned, the schema generation scripts strategy does not include a Hibernate equivalent UPDATE. Secondly, the CDI support is not available in the @Converter and @Entity.

The JPA expert group should consider more about NoSQL, and hear the voice from Hibernate community(there is a Hibernate OGM project for NoSQL, now supports Mongo, JBoss Infinispan) and other JPA providers, especially DataNucleus which has excellent NoSQL support.

The sample codes are hosted on my github.com account, check out and play it yourself.

https://github.com/hantsy/ee7-sandbox

转载于:https://my.oschina.net/hantsy/blog/182171

JPA 2.1: What is new相关推荐

  1. JPA不同包下同类名查询出错

    不同包下同类名查询出错 异常现象:使用JPA进行查询时,JPA的实体类映射到了另外一个包下的同名类,由于两个同名类中字段名和字段数不相同,所以会出现种种查询错误. 原因及对策:这里应该是jpa实体类默 ...

  2. MybatisPlus忽略实体类中的非数据库字段、JPA忽略实体类中的非数据库字段、HeHibernate忽略实体类中的非数据库字段

    mybatis plus忽略映射字段时可以在实体类属性上使用以下注解: @TableField(exist = false):表示该属性不为数据库表字段,但又是必须使用的. @TableField(e ...

  3. 使用JPA进行Update操作 @Query注解的用法,JPL

    使用jpa进行update操作有两种,第一种就是先查询,set,再进行save更新.这种做法过于繁杂,我只是要进行一个更新操作却变成了三步,所以我推荐使用第二种: @Modifying @Query( ...

  4. 使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with

    使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with ...

  5. Spring Boot整合Spring Data JPA操作数据

    一. Sping Data JPA 简介 Spring Data JPA 是 Spring 基于 ORM 框架.JPA 规范的基础上封装的一套 JPA 应用框架,底层使用了 Hibernate 的 J ...

  6. Spring Data JPA 五分钟快速入门和实践

    Spring Data JPA(类似于Java Web 中的 DAO) 操作声明持久层的接口(Repository) 三个核心接口: CrudRepository PagingAndSortingRe ...

  7. [JAVA EE] JPA 查询用法:自定义查询,分页查询

    项目已上传:https://codechina.csdn.net/qq_36286039/javaee 自定义查询 问题:内置的crud功能不满足需求时如何添加自定义查询? 几种自定义查询方法 方法命 ...

  8. [JAVA EE] JPA 技术实践:完成增、删、改、查操作

    项目已上传:https://codechina.csdn.net/qq_36286039/javaee 注意本项目是包含后文JPA 查询用法内容的,若您想看只有本文内容的项目,请下载: https:/ ...

  9. [JAVA EE] JPA技术基础:完成数据列表的删除

    接上一篇:[JAVA EE] JPA技术基础:完成数据列表显示 本章完成数据列表的删除 修改 UserController.java package com.example.demo.controll ...

  10. [JAVA EE] JPA技术基础:完成数据列表显示

    本章完成数据列表显示功能 ORM 和 JPA ORM (Object Relation Mapping) 是对象/关系映射,它将数据库中的表 和内存中的对象建立映射关系. 对象和关系型数据是业务实体的 ...

最新文章

  1. 从经典问题开始教你如何入门计算机视觉!贴心!
  2. 应用程序异常管理组件 Example 程序
  3. 用CMD开启Windows下的服务命令 转载
  4. Pytorch学习-tensorboard的使用
  5. 编写 matlab怎么调用 8 点和 16 点的 fft,8点基于DIT的FFT的实现
  6. python镜像下载包_python包详解
  7. Dbvisualizer9.0.6 解决中文乱码
  8. 【资讯】这10大科技,将彻底改变你的生活
  9. JavaScript实现封闭区域布尔运算
  10. 如何将交换功能写成函数?
  11. CMOS中的 latch-up 闩锁效应、添加tap解决latch-up、使用combained area绘制TAP TAP的作用 IC后端版图【VLSI】
  12. 地理分析方法论|地理探测器(Geo Detector)
  13. 网吧流媒体服务器系统,轻松搭建网吧影视服务器 让网速快起来
  14. 基于运放和三极管的恒流源电路
  15. 6个VMware桌面虚拟化的替代方案
  16. 项目管理九大知识领域五大过程组
  17. dockerspringboot-快速搭建FTP-Image图片服务器
  18. Unity适配IOS刘海屏
  19. IDEA配置注释模板
  20. java sql server连接字符串_java连接sql server

热门文章

  1. 2018.3.26 1501 二叉树最大宽度和高度
  2. 抽象类和接口有什么区别?
  3. 【转】PYTHON open/文件操作
  4. jQuery框架的简单使用(H5)
  5. easyUI Combobox自定义调整支持中文模糊查询
  6. oracle夜未眠之一增删改查
  7. 如何攻克异地协作难题?看 Tower 的 72 个月远程工作实践
  8. 微信的公众号为什么不做分类?
  9. JavaScript变量和对象参数传值问题
  10. include require区别