The problem:

Imagine You have the following entities:

The Person entity:

package com.chmits.demo.entities;

import lombok.*;

import javax.persistence.*;

import java.util.UUID;

import static javax.persistence.GenerationType.AUTO;

/**
*
@author Chamseddine Benhamed <chamseddine.bhd at gmail.com>
*/

@Entity(name = "person")
@Table(name = "person")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Person {
@Id
@GeneratedValue(strategy = AUTO)
@Column(name = "id")…

Chamseddine Benhamed

Software engineer at RTE

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store