diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java index 32140d4e..c4773b14 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Location.java @@ -1,11 +1,30 @@ package cat.udl.eps.softarch.demo.domain; -public class Location { - private int id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Entity +@Data +@NoArgsConstructor +@AllArgsConstructor + +public class Location extends UriEntity{ + @Id + private Long id; + private String address; + private float latitude; + private float longitude; + private String province; + private String municipality; + private String postalCode; + }