Skip to content

Commit

Permalink
added entity & data anotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Antt02 committed Feb 22, 2024
1 parent 13c8a15 commit 961cd43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Pet.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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;
Expand All @@ -10,7 +11,9 @@
@Data
public class Pet extends UriEntity<Long> {
@Id
@GeneratedValue
Long id;

String name;
boolean isAdopted;
String color;
Expand Down

0 comments on commit 961cd43

Please sign in to comment.