Автор: Antonio Goncalves
Издательство: Independently published
Год: 2019
Страниц: 247
Язык: английский
Формат: epub, pdf (conv)
Размер: 12.4 MB
Applications are made up of business logic, interaction with other systems, user interfaces etc. and data. Most of the data that our applications manipulate have to be stored in datastores, retrieved, processed and analysed. If this datastore is a relational database and you use an object-oriented programming language such as Java, then you should have a look at JPA. JPA is an Object-Relational Mapping tool that maps Java objects to relational databases and allows query operations. In this fascicle, you will learn Java Persistence API, its annotations for mapping entities, as well as the Java Persistence Query Language and entity life cycle and a few advanced topics such as integrating JPA with other frameworks (Bean Validation, JTA, CDI, Spring).
Lots of Java applications use an Object-Relational Mapping (ORM) framework, like Hibernate or EclipseLink, to read data from and to write it to a relational database. As a reader of this fascicle, you might already know that both frameworks implement the Java Persistence API (JPA) specification and that the popular Spring Data JPA project integrates them into the Spring ecosystem. But don’t worry if you’ve never heard about the JPA specification. If that’s the case, I want to congratulate you on your decision to learn about it.
JPA is one of the most popular specifications in the Java world. It defines an easy-to-use way to map database records to Java objects and to update the database records based on the changes you performed on these Java objects. It also specifies a query language that you can use to define database queries based on your Java classes. All of these powerful features are relatively easy to use if you know the basic concepts of JPA. That’s why Hibernate and other JPA implementations have become so popular and are used in most enterprise Java applications.
So, it should be evident that, as a professional Java developer or somebody who aspires to become one, you should have a solid understanding of JPA’s general concepts and capabilities.
Скачать Understanding JPA 2.2: Java Persistence API (agoncal fascicle)