Skip to content

Commit

Permalink
Fixed to extend UriEntity
Browse files Browse the repository at this point in the history
-Mario Fernandez
-Àlex Codina
  • Loading branch information
Codinab committed Feb 21, 2024
1 parent 2c4cb96 commit 34c71d8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Adoption.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import java.util.Date;

public class Adoption {
private Integer id;
public class Adoption extends UriEntity<Long> {
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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 34c71d8

Please sign in to comment.