`
iloveflower
  • 浏览: 81021 次
社区版块
存档分类
最新评论
  • iloveflower: 呵呵。好好学习。。。。。。。。。。。。
    java 读书
  • Eric.Yan: 看了一点,不过是电子版的……你这一说到提醒我了,还要继续学习哈 ...
    java 读书

Part 2. Java Persistence API

 
阅读更多
http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13946/ejb3_overview.html

Part 2. Java Persistence API
Table of Contents

1. Introduction
1.1. Intended Audience
1.2. Lightweight Persistence
2. Why JPA?
3. EJB Persistence Architecture
3.1. EJB Exceptions
4. Entity
4.1. Restrictions on Persistent Classes
4.1.1. Default or No-Arg Constructor
4.1.2. Final
4.1.3. Identity Fields
4.1.4. Version Field
4.1.5. Inheritance
4.1.6. Persistent Fields
4.1.7. Conclusions
4.2. Entity Identity
4.2.1. Identity Class
4.2.1.1. Identity Hierarchies
4.3. Lifecycle Callbacks
4.3.1. Callback Methods
4.3.2. Using Callback Methods
4.3.3. Using Entity Listeners
4.3.4. Entity Listeners Hierarchy
4.4. Conclusions
5. Metadata
5.1. Class Metadata
5.1.1. Entity
5.1.2. Id Class
5.1.3. Mapped Superclass
5.1.4. Embeddable
5.1.5. EntityListeners
5.1.6. Example
5.2. Field and Property Metadata
5.2.1. Transient
5.2.2. Id
5.2.3. Generated Value
5.2.4. Embedded Id
5.2.5. Version
5.2.6. Basic
5.2.6.1. Fetch Type
5.2.7. Embedded
5.2.8. Many-To-One
5.2.8.1. Cascade Type
5.2.9. One-To-Many
5.2.9.1. Bidirectional Relations
5.2.10. One-To-One
5.2.11. Many-To-Many
5.2.12. Order By
5.2.13. Map Key
5.2.14. Persistent Field Defaults
5.3. XML Schema
5.4. Conclusion
6. Persistence
6.1. persistence.xml
6.2. Non-EE Use
7. EntityManagerFactory
7.1. Obtaining an EntityManagerFactory
7.2. Obtaining EntityManagers
7.3. Persistence Context
7.3.1. Transaction Persistence Context
7.3.2. Extended Persistence Context
7.4. Closing the EntityManagerFactory
8. EntityManager
8.1. Transaction Association
8.2. Entity Lifecycle Management
8.3. Lifecycle Examples
8.4. Entity Identity Management
8.5. Cache Management
8.6. Query Factory
8.7. Closing
9. Transaction
9.1. Transaction Types
9.2. The EntityTransaction Interface
10. JPA Query
10.1. JPQL API
10.1.1. Query Basics
10.1.2. Relation Traversal
10.1.3. Fetch Joins
10.1.4. JPQL Functions
10.1.5. Polymorphic Queries
10.1.6. Query Parameters
10.1.7. Ordering
10.1.8. Aggregates
10.1.9. Named Queries
10.1.10. Delete By Query
10.1.11. Update By Query
10.2. JPQL Language Reference
10.2.1. JPQL Statement Types
10.2.1.1. JPQL Select Statement
10.2.1.2. JPQL Update and Delete Statements
10.2.2. JPQL Abstract Schema Types and Query Domains
10.2.2.1. JPQL Entity Naming
10.2.2.2. JPQL Schema Example
10.2.3. JPQL FROM Clause and Navigational Declarations
10.2.3.1. JPQL FROM Identifiers
10.2.3.2. JPQL Identification Variables
10.2.3.3. JPQL Range Declarations
10.2.3.4. JPQL Path Expressions
10.2.3.5. JPQL Joins
10.2.3.5.1. JPQL Inner Joins (Relationship Joins)
10.2.3.5.2. JPQL Outer Joins
10.2.3.5.3. JPQL Fetch Joins
10.2.3.6. JPQL Collection Member Declarations
10.2.3.7. JPQL Polymorphism
10.2.4. JPQL WHERE Clause
10.2.5. JPQL Conditional Expressions
10.2.5.1. JPQL Literals
10.2.5.2. JPQL Identification Variables
10.2.5.3. JPQL Path Expressions
10.2.5.4. JPQL Input Parameters
10.2.5.4.1. JPQL Positional Parameters
10.2.5.4.2. JPQL Named Parameters
10.2.5.5. JPQL Conditional Expression Composition
10.2.5.6. JPQL Operators and Operator Precedence
10.2.5.7. JPQL Between Expressions
10.2.5.8. JPQL In Expressions
10.2.5.9. JPQL Like Expressions
10.2.5.10. JPQL Null Comparison Expressions
10.2.5.11. JPQL Empty Collection Comparison Expressions
10.2.5.12. JPQL Collection Member Expressions
10.2.5.13. JPQL Exists Expressions
10.2.5.14. JPQL All or Any Expressions
10.2.5.15. JPQL Subqueries
10.2.5.16. JPQL Functional Expressions
10.2.5.16.1. JPQL String Functions
10.2.5.16.2. JPQL Arithmetic Functions
10.2.5.16.3. JPQL Datetime Functions
10.2.6. JPQL GROUP BY, HAVING
10.2.7. JPQL SELECT Clause
10.2.7.1. JPQL Result Type of the SELECT Clause
10.2.7.2. JPQL Constructor Expressions
10.2.7.3. JPQL Null Values in the Query Result
10.2.7.4. JPQL Aggregate Functions
10.2.7.4.1. JPQL Aggregate Examples
10.2.8. JPQL ORDER BY Clause
10.2.9. JPQL Bulk Update and Delete
10.2.10. JPQL Null Values
10.2.11. JPQL Equality and Comparison Semantics
10.2.12. JPQL BNF
11. SQL Queries
11.1. Creating SQL Queries
11.2. Retrieving Persistent Objects with SQL
12. Mapping Metadata
12.1. Table
12.2. Unique Constraints
12.3. Column
12.4. Identity Mapping
12.5. Generators
12.5.1. Sequence Generator
12.5.2. TableGenerator
12.5.3. Example
12.6. Inheritance
12.6.1. Single Table
12.6.1.1. Advantages
12.6.1.2. Disadvantages
12.6.2. Joined
12.6.2.1. Advantages
12.6.2.2. Disadvantages
12.6.3. Table Per Class
12.6.3.1. Advantages
12.6.3.2. Disadvantages
12.6.4. Putting it All Together
12.7. Discriminator
12.8. Field Mapping
12.8.1. Basic Mapping
12.8.1.1. LOBs
12.8.1.2. Enumerated
12.8.1.3. Temporal Types
12.8.1.4. The Updated Mappings
12.8.2. Secondary Tables
12.8.3. Embedded Mapping
12.8.4. Direct Relations
12.8.5. Join Table
12.8.6. Bidirectional Mapping
12.8.7. Map Mapping
12.9. The Complete Mappings
13. Conclusion
分享到:
评论

相关推荐

    java-api part2

    在"java-api part2"这个主题中,我们主要关注的是Java API的网页版,这通常指的是在线的Java API文档,这些文档通常以HTML形式呈现,方便开发者查询和学习。 Java API文档详细地列出了每一个类、接口、方法以及构造...

    tomcat与java.web开发技术详解源代码.part01.rar

    Java Web开发则涉及一系列的技术,包括Servlet、JSP、JavaServer Faces (JSF)、Java Persistence API (JPA)、Java Transaction API (JTA)等。Servlet是Java中用于处理HTTP请求的核心组件,开发者可以编写Servlet来...

    74个java面试题,只有题目没有答案

    Spring Data JPA 是一个基于 JPA(Java Persistence API)的持久化框架。 63. Java JavaBeans * 什么是 JavaBeans?JavaBeans 是一种组件模型,用于开发可重用的 UI 组件。 64. Java 自动装配 * 什么是自动装配...

    Spring Persistence with Hibernate (2016) 代码

    Learn how to use the core Hibernate APIs and tools as part of the Spring Framework.... Other persistence solutions available in Spring are also shown including the Java Persistence API (JPA).

    深入掌握J2EE编程技术.part02.rar

    4. **JPA(Java Persistence API)与Hibernate**:JPA是Java EE规范中用于对象关系映射(ORM)的标准,而Hibernate是流行的JPA实现。这部分将介绍如何通过JPA定义实体类、执行CRUD操作,以及利用Hibernate的高级特性,...

    JAVA WEB编程从入门到实践.1

    通过学习本书,你可以深入了解JAVA Web技术,包括Servlet、JSP、JavaServer Faces (JSF)、Java Persistence API (JPA)以及Spring框架等核心概念。 首先,我们从基础开始,JAVA Web编程的核心是Servlet,它是Java为...

    jbpm-4.4 part03.zip

    4. **集成与扩展**:jbpm-4.4可以与Java EE应用程序服务器如JBoss AS、Tomcat等无缝集成,同时提供了丰富的API和插件机制,允许开发者自定义行为,如监听器、适配器和任务表单。 5. **GUI工具**:jbpm提供了Guvnor...

    java web5.zip

    2. **Java EE组件**:包括EJB(Enterprise JavaBeans)、JMS(Java Message Service)和JPA(Java Persistence API)等,它们为企业级应用提供了强大的服务支持,如事务管理、消息队列和数据持久化。 3. **MVC架构*...

    Spring.MVC.Cookbook.1784396419

    Using Bootstrap and AngularJS, you will develop a responsive front-end, capable of interacting autonomously with a REST API. Later in the book, you will setup the Java Persistence API (JPA) within ...

    java 中文帮助文档 code1

    5. **Java Persistence API (JPA)**:JPA提供了ORM(对象关系映射)能力,帮助开发者将Java对象与关系数据库中的数据进行绑定。 6. **Java Transaction API (JTA)** 和 **Java Message Service (JMS)**:这些API...

    programming_the_semantic_web.pdf

    Using the Sesame Java API 184 RDFS Inferencing in Sesame 193 A Servlet Container for the Sesame Server 196 Installing the Sesame Web Application 196 The Workbench 197 Adding Data 199 SPARQL Queries ...

    Hibernate程序高手秘笈.part04-06.rar

    17. **JPA(Java Persistence API)与Hibernate的关系**:解释JPA标准及其在Hibernate中的实现。 18. **Hibernate的扩展与插件**:如Hibernate Tools,用于生成实体类、映射文件等。 19. **案例分析与实战**:通过...

    Hibernate程序高手秘笈.part10-11.rar

    8. **JPA注解**:与Hibernate结合使用Java Persistence API(JPA)注解,实现ORM映射,简化代码。 Part11:实战应用与优化 1. **性能调优**:分析影响Hibernate性能的因素,如批处理、缓存策略、连接池等,并给出...

    javascript权威指南(第六版)

    2. Lexical Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.1 Character Set 21 2.2 Comments 23 2.3 Literals 23 2.4 ...

    java-blog.zip_blog_java博客

    Java通常结合JPA(Java Persistence API)和Hibernate这样的ORM(对象关系映射)工具来操作数据库。通过JPA,开发者可以以面向对象的方式编写SQL查询,而Hibernate则作为JPA的实现,提供了更丰富的功能和性能优化。 ...

    我的智囊团源代码part4

    Enterprise Edition)是一个用于构建企业级应用的开放标准平台,它包括了各种服务、API和容器,如Servlet、JSP、EJB(Enterprise JavaBeans)、JMS(Java Message Service)、JPA(Java Persistence API)等。...

    hibernate3.3.2jar包part2

    3. `hibernate-entitymanager.jar`: 这是JPA(Java Persistence API)的一部分,提供了对ORM的规范支持。在Hibernate 3.3.2中,它实现了JPA的规范,允许开发者按照标准API来使用Hibernate。 4. `hibernate-...

    The Java EE 6 Tutorial Basic Concepts 4th Edition

    Chapter 19: Introduction to the Java Persistence API 333 Entities 333 Entity Inheritance 345 Managing Entities 349 Querying Entities 355 Further Information about Persistence 355 Chapter 20: ...

    Android应用源码之immomo.part2_Android.zip

    在本压缩包“Android应用源码之immomo.part2_Android.zip”中,我们主要探讨的是Android应用程序的源代码,特别是针对"immomo"这款应用的第二部分。由于没有具体的标签,我们将根据Android开发的一般流程和技术来...

Global site tag (gtag.js) - Google Analytics