From cf63a93c9fcc8f0da1a68ee90abc8660ddbbcb19 Mon Sep 17 00:00:00 2001 From: amine20akka Date: Sun, 29 Dec 2024 21:24:42 +0100 Subject: [PATCH] Fix JoinColumn reference for address in Shipment model --- shipping/src/main/java/org/shipping/model/Shipment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shipping/src/main/java/org/shipping/model/Shipment.java b/shipping/src/main/java/org/shipping/model/Shipment.java index bb398994..e62228d7 100755 --- a/shipping/src/main/java/org/shipping/model/Shipment.java +++ b/shipping/src/main/java/org/shipping/model/Shipment.java @@ -32,7 +32,7 @@ public class Shipment { private LocalDateTime deliveryDate; @ManyToOne - @JoinColumn(name = "addressId", referencedColumnName = "id") + @JoinColumn(name = "addressId", referencedColumnName = "addressId") private Address address;