Skip to content

Commit

Permalink
Basic creation for the classes I've been assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
globox97 committed Feb 21, 2024
1 parent 3787469 commit 0afb73e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Location.java
Original file line number Diff line number Diff line change
@@ -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<Long>{
@Id
private Long id;

private String address;

private float latitude;

private float longitude;

private String province;

private String municipality;

private String postalCode;

}

0 comments on commit 0afb73e

Please sign in to comment.