- Developing Middleware in Java EE 8
- Abdalla Mahmoud
- 243字
- 2021-07-23 19:24:35
Accessing the Database with JPA 2.1
The data access layer is the most fundamental part and the backbone of any enterprise application. The ultimate goal of any enterprise solution is to store and retrieve its data with respect to consistency, availability, and performance. A common problem arises when dealing with a relational database from an object-oriented system. All runtime data is represented as objects, where the real data is stored as rows in tables. When trying to save an object state into a row in a database table, or fetching some data from the database and wrapping the result back into an object again, a set of redundant programmatic statements should be written, which is very boring and actually old-school.
Object-to-relational mapping is a very common approach to overcoming this redundancy by providing a layer above the database access APIs, allowing developers to directly store and retrieve objects, and mapping their attributes directly to database tables and vice versa, providing a virtual object-oriented database interface for the actual relational data.
The Java Persistence API (JPA) does a great job at this by providing Java developers with all the required operations, mappings, and techniques for mapping objects into the relational database. In this chapter, we are going to learn how to use JPA for the following:
- Creating and using JPA entities
- Mapping entities to tables and columns
- Performing CRUD operations
- Mapping entity relationships
- Using the JPA query language and criteria APIs
- Mapping inheritance relationships
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發(fā)經(jīng)典名著)
- HTML5移動Web開發(fā)技術
- Java 9 Concurrency Cookbook(Second Edition)
- 企業(yè)級Java EE架構設計精深實踐
- Getting Started with ResearchKit
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Learning OpenStack Networking(Neutron)
- Angular開發(fā)入門與實戰(zhàn)
- Citrix XenServer企業(yè)運維實戰(zhàn)
- Hands-On Kubernetes on Windows
- 運維前線:一線運維專家的運維方法、技巧與實踐
- C++語言程序設計
- JavaScript+jQuery網(wǎng)頁特效設計任務驅動教程
- 動手打造深度學習框架
- CodeIgniter Web Application Blueprints