JPQL vs native SQL
JPQL queries entity names and mapped properties; native SQL queries database tables and columns
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1981–1992 of 3610 questions
JPQL queries entity names and mapped properties; native SQL queries database tables and columns
Spring transaction infrastructure surrounds eligible method calls and commits or rolls back according to transaction-manager rules
REQUIRED joins or creates a transaction; REQUIRES_NEW suspends an existing transaction and starts a separate one
N+1 occurs when loading a list of parent rows triggers extra queries for each related entity
Lazy loading defers relationship fetching until access; eager loading requests related data as part of entity loading
Spring Data accepts Pageable and can return Page or Slice
@RestControllerAdvice centralizes exception mapping
ProblemDetail represents structured HTTP errors using fields such as status, title, detail, and instance
Use a logging facade with meaningful contextual messages, appropriate severity, and parameterized values
Actuator provides operational endpoints for health, metrics, and other management data
Health indicators report component status and are aggregated into health endpoints
Conditional configuration activates when classpath, property, or bean conditions match