Concept
A JPA @Entity maps a class to a table, and a Spring Data repository interface gives you save, findById and derived queries without writing SQL. The method name is the query.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Entities and repositories doing its job.
@Entity
@Table(name = "orders")
public class Order {
@Id @GeneratedValue private UUID id;
@Column(nullable = false) private String customerEmail;
@Enumerated(EnumType.STRING) private OrderStatus status;
protected Order() {}
}
public interface OrderRepository extends JpaRepository<Order, UUID> {
List<Order> findByCustomerEmailAndStatus(String email, OrderStatus status);
}Letting Hibernate generate the schema in production with ddl-auto=update. Column changes become silent drift; use migrations (Flyway or Liquibase) and set ddl-auto to validate.
Your roadmap puts these before Entities and repositories, unless you already know them.
Once a session shows you understand Entities and repositories, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on Entities and repositories.