Skip to content

Commit

Permalink
Change ID type to String and update PUML accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
PauMAVA committed Feb 20, 2024
1 parent c87d110 commit e75bce0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions EntitiesModel.puml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UriEntity {
uri : String
}
abstract class Pet extends UriEntity {
id: Integer
id: String
name: String
dateOfBirth: Date
isAdopted: Boolean
Expand Down Expand Up @@ -42,7 +42,7 @@ class Shelter extends UriEntity {
}

class Location {
id: Integer
id: String
address: String
latitude: Float
longitude: Float
Expand All @@ -57,7 +57,7 @@ class ShelterCertificate {
}

class Schedule {
id: Integer
id: String
startTime: Time
endTime: Time
}
Expand All @@ -67,12 +67,12 @@ class Adoptions {
}

class Role {
id: Integer
id: String
name: String
}

class Permission {
id: Integer
id: String
name: String
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cat/udl/eps/softarch/demo/domain/Cat.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Cat extends Pet {
private Integer meowingLevel;

@Override
public Long getId() {
public String getId() {
return super.getId();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cat/udl/eps/softarch/demo/domain/Dog.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Dog extends Pet {
private Integer barkingLevel;

@Override
public Long getId() {
public String getId() {
return super.getId();
}
}
2 changes: 1 addition & 1 deletion src/main/java/cat/udl/eps/softarch/demo/domain/Pet.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public abstract class Pet extends UriEntity<String> {

@Id
private Long id;
private String id;

@NotBlank
private String name;
Expand Down

0 comments on commit e75bce0

Please sign in to comment.