-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic creation for the classes I've been assigned
- Loading branch information
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
23 changes: 21 additions & 2 deletions
23
src/main/java/cat/udl/eps/softarch/demo/domain/Location.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
} |