mehmetozanguven
  • Home
  • About Me
  • Top Categories
    • Container
    • Apache Flink
    • JPA
    • Spring Boot
  • Popular tags
    • How to series
    • Spring Security
  • Pages
    • Tags
    • Category

Showing posts from jpa

  • Home
  • /   Categories
  • /   Jpa
  • 13 Nov, 2024
    • jpa
    • spring-boot

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 …

Creating base class (abstract entity class) for all entities in your Spring Boot project
  • 16 May, 2023
    • jpa
    • hibernate

Creating base class (abstract entity class) for all entities in your Spring Boot project

As developers, we often find ourselves faced with the challenge of managing multiple entities that share common attributes and behavior. By leveraging …

Creating entity with includes nested data structures in Hibernate 6 (and in Spring Boot 3)
  • 21 Apr, 2023
    • java
    • jpa
    • hibernate

Creating entity with includes nested data structures in Hibernate 6 (and in Spring Boot 3)

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 …

JPA Fundamentals & Hibernate - 13) Entity Lifecycle Events (Final)
  • 19 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 13) Entity Lifecycle Events (Final)

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 …

JPA Fundamentals & Hibernate - 12) JPQL and Queries
  • 19 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 12) JPQL and Queries

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 …

JPA Fundamentals & Hibernate - 11) Entity Manager
  • 15 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 11) Entity Manager

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 …

JPA Fundamentals & Hibernate - 10) Inheritance Strategies
  • 15 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 10) Inheritance Strategies

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 …

JPA Fundamentals & Hibernate - 9) AssociationOverride
  • 14 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 9) AssociationOverride

In this article, we are going to learn how to create relationship using @Embeddable & @Embedded object . @AssociativeOverride is used to override …

JPA Fundamentals & Hibernate - 8) Many To Many Relationship
  • 14 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 8) Many To Many Relationship

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 …

JPA Fundamentals & Hibernate - 7) One To Many & Many To One Relationship
  • 13 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 7) One To Many & Many To One Relationship

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, …

JPA Fundamentals & Hibernate - 6) One To One Relationship & Cascade Operation
  • 11 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 6) One To One Relationship & Cascade Operation

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 …

JPA Fundamentals & Hibernate - 5) Composed Keys
  • 10 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 5) Composed Keys

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 …

JPA Fundamentals & Hibernate - 4) @Embeddable and @Embedded
  • 08 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 4) @Embeddable and @Embedded

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 …

JPA Fundamentals & Hibernate - 3) @Enumareted, @Temporal and Date Types
  • 06 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 3) @Enumareted, @Temporal and Date Types

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 …

JPA Fundamentals & Hibernate - 2) @Id generation
  • 06 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 2) @Id generation

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 …

JPA Fundamentals & Hibernate - 1) Entities and Context
  • 04 Aug, 2021
    • java
    • jpa

JPA Fundamentals & Hibernate - 1) Entities and Context

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, …

  • About Me
  • Contact Us
  • Privacy
  • Terms & Conditions

mehmetozanguven