Commit 8008fbbc authored by Jyrgen Hannus's avatar Jyrgen Hannus
Browse files

Replaced @Data annotations with @Getter and @Setter due to JPA and toString infinite loop issues

parent e5ccae9f
...@@ -5,7 +5,6 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity; ...@@ -5,7 +5,6 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity;
import ee.sm.ti.teis.types.enums.ObjectStatus; import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
...@@ -23,7 +22,8 @@ import javax.validation.constraints.NotNull; ...@@ -23,7 +22,8 @@ import javax.validation.constraints.NotNull;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Data @Getter
@Setter
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
......
...@@ -4,7 +4,6 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity; ...@@ -4,7 +4,6 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity;
import ee.sm.ti.teis.types.enums.ObjectStatus; import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
...@@ -20,7 +19,8 @@ import javax.validation.constraints.NotBlank; ...@@ -20,7 +19,8 @@ import javax.validation.constraints.NotBlank;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Data @Getter
@Setter
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
......
...@@ -4,9 +4,10 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity; ...@@ -4,9 +4,10 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity;
import ee.sm.ti.teis.types.enums.ObjectStatus; import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Column; import javax.persistence.Column;
...@@ -20,7 +21,8 @@ import javax.validation.constraints.NotBlank; ...@@ -20,7 +21,8 @@ import javax.validation.constraints.NotBlank;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Data @Getter
@Setter
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
......
...@@ -5,7 +5,6 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity; ...@@ -5,7 +5,6 @@ import ee.sm.ti.teis.servicecommon.common.AuditedEntity;
import ee.sm.ti.teis.types.enums.ObjectStatus; import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
...@@ -23,7 +22,8 @@ import javax.validation.constraints.NotBlank; ...@@ -23,7 +22,8 @@ import javax.validation.constraints.NotBlank;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Data @Getter
@Setter
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment