From 3787469b0a79253e581f6c44efc6e06a72524da3 Mon Sep 17 00:00:00 2001 From: globox97 Date: Tue, 20 Feb 2024 16:18:19 +0100 Subject: [PATCH 1/3] Basic creation for the classes I've been assigned --- .../java/cat/udl/eps/softarch/demo/domain/Client.java | 5 +++++ .../cat/udl/eps/softarch/demo/domain/Location.java | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/main/java/cat/udl/eps/softarch/demo/domain/Client.java create mode 100644 src/main/java/cat/udl/eps/softarch/demo/domain/Location.java diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Client.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Client.java new file mode 100644 index 00000000..1ea3bc69 --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Client.java @@ -0,0 +1,5 @@ +package cat.udl.eps.softarch.demo.domain; + +public class Client { + +} diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java new file mode 100644 index 00000000..32140d4e --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java @@ -0,0 +1,11 @@ +package cat.udl.eps.softarch.demo.domain; + +public class Location { + private int id; + private String address; + private float latitude; + private float longitude; + private String province; + private String municipality; + private String postalCode; +} From 0afb73e11f5dee1d6409e2a0f74c87d0e3ddebbd Mon Sep 17 00:00:00 2001 From: globox97 Date: Wed, 21 Feb 2024 12:30:35 +0100 Subject: [PATCH 2/3] Basic creation for the classes I've been assigned --- .../eps/softarch/demo/domain/Location.java | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java index 32140d4e..c4773b14 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java @@ -1,11 +1,30 @@ package cat.udl.eps.softarch.demo.domain; -public class Location { - private int id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Entity +@Data +@NoArgsConstructor +@AllArgsConstructor + +public class Location extends UriEntity{ + @Id + private Long id; + private String address; + private float latitude; + private float longitude; + private String province; + private String municipality; + private String postalCode; + } From 4d7cbb3b689ccfda01726b1ca0ca3ac7d03a2bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Garc=C3=ADa?= Date: Thu, 22 Feb 2024 08:37:35 +0100 Subject: [PATCH 3/3] Remove unrelated and uncomplete class Client --- src/main/java/cat/udl/eps/softarch/demo/domain/Client.java | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 src/main/java/cat/udl/eps/softarch/demo/domain/Client.java diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Client.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Client.java deleted file mode 100644 index 1ea3bc69..00000000 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Client.java +++ /dev/null @@ -1,5 +0,0 @@ -package cat.udl.eps.softarch.demo.domain; - -public class Client { - -}