From 6e1146744f24ccd4c8d8501b57294871abca93ad Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 10 Nov 2023 19:36:31 +0000 Subject: [PATCH] fix : issue with saving Tag --- .../example/graphql/querydsl/entities/PostTag.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/graphql/boot-graphql-querydsl/src/main/java/com/example/graphql/querydsl/entities/PostTag.java b/graphql/boot-graphql-querydsl/src/main/java/com/example/graphql/querydsl/entities/PostTag.java index e7dc28ce5..9aebfbbeb 100644 --- a/graphql/boot-graphql-querydsl/src/main/java/com/example/graphql/querydsl/entities/PostTag.java +++ b/graphql/boot-graphql-querydsl/src/main/java/com/example/graphql/querydsl/entities/PostTag.java @@ -1,15 +1,25 @@ package com.example.graphql.querydsl.entities; -import jakarta.persistence.*; +import jakarta.persistence.Column; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapsId; +import jakarta.persistence.Table; import java.time.LocalDateTime; import java.util.Objects; +import lombok.AllArgsConstructor; import lombok.Getter; +import lombok.NoArgsConstructor; import lombok.Setter; @Entity(name = "PostTag") @Table(name = "post_tags") @Setter @Getter +@NoArgsConstructor +@AllArgsConstructor public class PostTag { @EmbeddedId