![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jpa
java开发阿正
非战斗人员尽撤离现场。
展开
-
JPA_Table主键生成策略
1. 新建一张主键值的生成表 package com.jpa.beans; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.p...原创 2018-11-11 23:33:51 · 126 阅读 · 0 评论 -
JPA 缓存结合Ehcache配置练习
一 . maven 文件的配置 <!-- hibernate 二级缓存 --> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>2.转载 2018-12-02 23:09:40 · 219 阅读 · 0 评论 -
Spring 整合JPA
一. 创建目录格式(如图) 二. 创建spring配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xm...转载 2018-12-05 00:00:48 · 108 阅读 · 0 评论