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; 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 { - -}