From c5e55c66033b918645f0ab404a6c18ada396f3e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pol=20Escol=C3=A0=20Curc=C3=B3?= Date: Thu, 29 Feb 2024 16:49:10 +0100 Subject: [PATCH 1/2] social network reimplemented uml --- .../cat/udl/eps/softarch/demo/domain/SocialNetworks.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java b/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java index 0247239d..a4b7041f 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java @@ -10,8 +10,10 @@ public class SocialNetworks extends UriEntity { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; - private String instagram; - private String twitter; + private String type; + private String username; + private String uri; + @ManyToOne public Shelter belongsTo; From 2b91f1bae5190b4e54159ce9121d3620b244ed45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pol=20Escol=C3=A0=20Curc=C3=B3?= Date: Tue, 5 Mar 2024 17:28:51 +0100 Subject: [PATCH 2/2] social networks changes aplied --- .../udl/eps/softarch/demo/domain/SocialNetworks.java | 6 ++++-- .../demo/repository/SocialNetworksRepository.java | 10 ---------- 2 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 src/main/java/cat/udl/eps/softarch/demo/repository/SocialNetworksRepository.java diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java b/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java index 0247239d..8c4f99ca 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/SocialNetworks.java @@ -10,10 +10,12 @@ public class SocialNetworks extends UriEntity { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; - private String instagram; - private String twitter; + private String username; + private String type; + private String url; @ManyToOne public Shelter belongsTo; + } diff --git a/src/main/java/cat/udl/eps/softarch/demo/repository/SocialNetworksRepository.java b/src/main/java/cat/udl/eps/softarch/demo/repository/SocialNetworksRepository.java deleted file mode 100644 index 1eef3cda..00000000 --- a/src/main/java/cat/udl/eps/softarch/demo/repository/SocialNetworksRepository.java +++ /dev/null @@ -1,10 +0,0 @@ -package cat.udl.eps.softarch.demo.repository; - -import cat.udl.eps.softarch.demo.domain.SocialNetworks; -import org.springframework.data.repository.CrudRepository; -import org.springframework.data.rest.core.annotation.RepositoryRestResource; - -@RepositoryRestResource -public interface SocialNetworksRepository extends CrudRepository { - -}