Skip to content

Commit

Permalink
Merge pull request #23 from UdL-EPS-SoftArch/crud-Pet
Browse files Browse the repository at this point in the history
Crud pet
  • Loading branch information
rogargon authored Feb 22, 2024
2 parents 4b820f8 + 03cd5b5 commit 78460de
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Pet.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
package cat.udl.eps.softarch.demo.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class Pet extends UriEntity<Long> {
@Id
@GeneratedValue
Long id;

String name;
boolean isAdopted;
String color;
Expand All @@ -13,9 +22,4 @@ public class Pet extends UriEntity<Long> {
String age;
String description;
String breed;

@Override
public Long getId() {
return id;
}
}

0 comments on commit 78460de

Please sign in to comment.