How to use Criteria & Metamodel API with Spring Boot to create dynamic queries
Sometimes you may need to create your sql queries on runtime with some specification given by your client. In these cases, you may create many JPQLs …
Sometimes you may need to create your sql queries on runtime with some specification given by your client. In these cases, you may create many JPQLs …
As developers, we often find ourselves faced with the challenge of managing multiple entities that share common attributes and behavior. By leveraging …
Sometimes your entity might need store nested data structures such as Map<String, Map<String, String> or list of list etc.. If you want to …
In this article, we are going to learn lifecycle events in the JPA. As of the most application we will have date_created and last_modified column to …
In this article, we will learn what is the JPQL(The Java Persistence Query Language) and how to use it. What is the JPQL The Java Persistence query …
In this article, we are going to discuss what is the entity manager in the JPA and also learn the basic operations in the entity manager How to Obtain …
In this article, we are going to look how to represent the inheritance relationship in the JPA and how to use @MapperSuperclass annotation Github Link …
In this article, we are going to learn how to create relationship using @Embeddable & @Embedded object . @AssociativeOverride is used to override …
In this post, we are going to learn how to create many-to-many relationship in JPA. Github Link If you only need to see the code, here is the github …
In the OneToMany setup, Many sides must have the foreign key and it is the owner of the relatonship Github Link If you only need to see the code, …
In this article, we are going to learn how to construct a one-to-one relationship between entities in the JPA and when to use Cascade operation Github …
In this article, we are going to find out how to create composite keys in JPA. Composite key is the key which composed of multiple columns. Github …
In this post, we are going to learn when and how to use embaddable object in Java and JPA. Github Link If you only need to see the code, here is the …
In this post, we are going to learn @Enumarated and @Temporal annotations, how to store enums as ordinal and string and when to store enum types to …
In this post, we are going to find out “what are the options to provide automatic Id generation instead of setting manually”. We will look …
In this series, we are going to learn the JPA fundamentals and we are going to use one of its implementation Hibernate. Before diving into the series, …