Opinionated JPA with Querydsl by Richard ”Virgo” Richter
English | 2017 | 233 pages | PDF | 1.60 Mb
English | 2017 | 233 pages | PDF | 1.60 Mb
We use JPA/ORM because it's convenient and available. How hard can it be? Later our to-one relationships don't want to load lazily and the performance suffers. This book fills non-reference niche, using JPA differently and exploring options how to get around some of the limitations. And it shows Querydsl for better query code in the process.
ORM is a neat idea, typically used together with rich domain model. JPA, currently in version 2.2, is a Java specification that is a common ground for most Java ORMs. But ORM is also a love-hate topic, with stickers like "Vietnam of computer science", often called an antipattern.
In this book we'll talk about many interesting JPA aspects and put them into the context of other persistence options. I'll also try to explore how to use JPA for queries that are more SQL friendly, but still benefiting from convenient features not available with plain old JDBC. We will discuss non-JPA feature called entity (or ad-hoc) joins - supported by both EclipseLink and Hibernate. We'll also cover some typical problems (lazy loading and related N+1 select).
Querydsl will be with us along the way, because compared to Criteria API it allows us to write much cleaner queries in a fluent API fashion.
Feel Free to contact me for book requests, informations or feedbacks.
Without You And Your Support We Can’t Continue
Thanks For Buying Premium From My Links For Support
Without You And Your Support We Can’t Continue
Thanks For Buying Premium From My Links For Support