Java Persistence with Spring Data and Hibernate, Video Edition

Java Persistence with Spring Data and Hibernate, Video Edition

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 13h 48m | 1.50 GB

Master Java persistence using the industry-leading tools Spring Data and Hibernate.

In Java Persistence with Spring Data and Hibernate you will learn:

  • Mapping persistent classes, value types, and inheritance
  • Mapping collections and entity associations
  • Processing transactions with Spring Data and Hibernate
  • Creating fetch plans, strategies, and profiles
  • Filtering data
  • Building Spring Data REST projects
  • Using Java persistence with non-relational databases
  • Querying JPA with QueryDSL
  • Testing Java persistence applications

Java Persistence with Spring Data and Hibernate teaches you the ins-and-outs of Java persistence with hands-on examples using Spring Data, JPA, and Hibernate. The book carefully analyzes the capabilities of the major Java persistence tools, and guides you through the most common use cases. By comparing and contrasting the alternatives, you’ll find it easy to choose the right tool choice for your applications. You’ll learn how to make and utilize mapping strategies, about the different approach to transactions for both Hibernate and Spring Data, and even how to efficiently test Java persistence applications. The practical techniques are demonstrated with both relational and non-relational databases.

Effectively managing application data is essential for any serious application. Spring Data and Hibernate bridge the gap between object-oriented code and relational data stores, radically simplifying Java persistence. By implementing the Java Persistence API (JPA) standard, these powerful tools help you avoid common bugs related to state and application data storage.

Java Persistence with Spring Data and Hibernate explores Java persistence using industry-standard tools. Hands-on examples introduce object-relational mapping and guide you through different mapping strategies to suit your needs. Covering transactions, persistent application testing, and non-relational databases, this book is your go-to resource for managing data in Java applications.

What’s inside

  • Mapping persistent classes, value types, and inheritance
  • Creating fetch plans, strategies, and profiles
  • Building Spring Data REST projects
  • Querying JPA with QueryDSL
Table of Contents

1 Part 1. Getting started with ORM
2 Understanding objectrelational persistence
3 The paradigm mismatch
4 ORM, JPA, Hibernate, and Spring Data
5 Summary
6 Starting a project
7 Introducing Spring Data
8 “Hello World” with JPA
9 Native Hibernate configuration
10 Switching between JPA and Hibernate
11 “Hello World” with Spring Data JPA
12 Comparing the approaches of persisting entities
13 Summary
14 Domain models and metadata
15 Implementing the domain model
16 Domain model metadata
17 Summary
18 Working with Spring Data JPA
19 Starting a new Spring Data JPA project
20 First steps for configuring a Spring Data JPA project
21 Defining query methods with Spring Data JPA
22 Limiting query results, sorting, and paging
23 Streaming results
24 The @Query annotation
25 Projections
26 Modifying queries
27 Query by Example
28 Summary
29 Part 2. Mapping strategies
30 Mapping persistent classes
31 Mapping entities with identity
32 Entity-mapping options
33 Summary
34 Mapping value types
35 Mapping embeddable components
36 Mapping Java and SQL types with converters
37 Summary
38 Mapping inheritance
39 Table per concrete class with unions
40 Table per class hierarchy
41 Table per subclass with joins
42 Mixing inheritance strategies
43 Chpater 7. Inheritance of embeddable classes
44 Choosing a strategy
45 Polymorphic associations
46 Summary
47 Mapping collections and entity associations
48 Collections of components
49 Mapping entity associations
50 Summary
51 Advanced entity association mappings
52 One-to-many associations
53 Many-to-many and ternary associations
54 Entity associations with maps
55 Summary
56 Part 3. Transactional data processing
57 Managing data
58 The EntityManager interface
59 Working with detached state
60 Summary
61 Transactions and concurrency
62 Controlling concurrent access
63 Non-transactional data access
64 Managing transactions with Spring and Spring Data
65 Summary
66 Fetch plans, strategies, and profiles
67 Selecting a fetch strategy
68 Using fetch profiles
69 Summary
70 Filtering data
71 Listening to and intercepting events
72 Auditing and versioning with Hibernate Envers
73 Dynamic data filters
74 Summary
75 Part 4. Building Java persistence applications with Spring
76 Integrating JPA and Hibernate with Spring
77 JPA application using Spring and the DAO pattern
78 Generifying a JPA application that uses Spring and DAO
79 Hibernate application using Spring and the DAO pattern
80 Generifying a Hibernate application that uses Spring and DAO
81 Summary
82 Working with Spring Data JDBC
83 Working with queries in Spring Data JDBC
84 Modeling relationships with Spring Data JDBC
85 Summary
86 Working with Spring Data REST
87 Creating a Spring Data REST application
88 Using ETags for conditional requests
89 Limiting access to repositories, methods, and fields
90 Working with REST events
91 Using projections and excerpts
92 Summary
93 Part 5. Building Java persistence applications with Spring
94 Working with Spring Data MongoDB
95 Introducing Spring Data MongoDB
96 Using MongoRepository to access a database
97 Query by Example
98 Referencing other MongoDB documents
99 Using MongoTemplate to access a database
100 Summary
101 Working with Hibernate OGM
102 Building a simple MongoDB Hibernate OGM application
103 Switching to the Neo4j NoSQL database
104 Summary
105 Part 6. Writing queries and testing Java persistence applications
106 Querying JPA with Querydsl
107 Creating a Querydsl application
108 Querying a database with Querydsl
109 Summary
110 Testing Java persistence applications
111 Creating the persistence application to test
112 Using the Spring TestContext Framework
113 The @DirtiesContext annotation
114 @Transactional execution
115 The @BeforeTransaction and @AfterTransaction annotations
116 Working with Spring profiles
117 Working with test execution listeners
118 Summary
119 Maven
120 Strong dependency management
121 Maven build lifecycles
122 Plugin-based architecture
123 The Maven project object model (POM)
124 Installing Maven

Homepage