Loading tutorials
application.properties works. By the end you will have a project that starts a JPA layer against an in-memory database.1 min read@Entity and know what a primary key is in SQL. It covers how JPA identifies each entity and how the key value gets assigned.2 min read@Entity with an @Id and @Column fields, as covered in the earlier chapters. It shows how to model values that have no identity of their own: grouped fields, enums, and a few common types such as dates and money.2 min read@Entity and @Id. It covers how JPA maps relationships between entities and which side controls the database column.2 min read@Entity and @Id, and that you have a Spring Boot project with spring-boot-starter-data-jpa and a configured database. You should also know what dependency injection is.2 min readBook and Author entities, can write a repository interface that extends JpaRepository, and can read basic SQL where clauses.2 min readAuthor and Book entities from earlier chapters. Derived methods work well for simple filters. When a method name becomes unreadable, or you need a join, an aggregate or a vendor-specific feature, use `@Q2 min readPageable parameter looks like in a repository signature. It also assumes you know basic SQL (order by, limit, offset). Here you will learn how Spring Data JPA returns part of a result set, how it sorts, and which mista2 min read@Transactional controls when changes reach the database.2 min read@ManyToOne and @OneToMany, write repository methods, and read basic SQL. It uses the Author and Book entities from the earlier chapters.2 min readBook and Author are mapped, as in the earlier chapters. A projection returns only some fields of an entity, so the query does not load whole entities when you only need a few columns.2 min read@Id, and that you understand the persistence context and entity states from earlier chapters. It explains why default Java equality is a poor fit for JPA entities. It then shows a safe equals and hashCode implementation.2 min read@Entity, define a Spring Data repository, and write derived queries and paged queries. It also assumes basic JUnit 5 knowledge.2 min read