From 34c71d8960dbf7401a7522d253b32175ae455f39 Mon Sep 17 00:00:00 2001 From: Codinab Date: Wed, 21 Feb 2024 17:37:09 +0100 Subject: [PATCH] Fixed to extend UriEntity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Mario Fernandez -Àlex Codina --- .../cat/udl/eps/softarch/demo/domain/Adoption.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Adoption.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Adoption.java index 4619f7f8..b01921a2 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Adoption.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Adoption.java @@ -2,15 +2,15 @@ import java.util.Date; -public class Adoption { - private Integer id; +public class Adoption extends UriEntity { + private Long id; private String type; private Boolean confirmed; private Date startDate; private Date endDate; // Constructor - public Adoption(Integer id, String type, Boolean confirmed, Date startDate, Date endDate) { + public Adoption(Long id, String type, Boolean confirmed, Date startDate, Date endDate) { this.id = id; this.type = type; this.confirmed = confirmed; @@ -20,14 +20,10 @@ public Adoption(Integer id, String type, Boolean confirmed, Date startDate, Date // Getters and Setters - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { - this.id = id; - } - + public String getType() { return type; }