Cascade Mapping
Cascading is one of the most misunderstood concepts in Hibernate/JPA. Before learning orphanRemoval , Actio…
In Hibernate, when people ask “types of joins” in an interview, they usually mean the joins used in HQL/JPQL . Remember, the SQL database…
Cascading is one of the most misunderstood concepts in Hibernate/JPA. Before learning orphanRemoval , Actio…
flush() Now for the main topic. When you call entityManager.flush(); , it means: Synchronize the current …
@Transactional Now we need to connect everything. Spring's @Transactional annotation is primarily use…
1. JPQL Now let's move to queries. JPQL stands for Java Persistence Query Language. It operates on En…
Sorting in JPQL Sorting results in JPQL is straightforward and works very similarly to standard SQL, usin…
Pagination Pagination means: Don't retrieve thousands or millions of records at once. Retrieve a limi…