* GET all properties * GET one property by id * CREATE one property * DELETE one property by id
89 lines
1.6 KiB
Java
89 lines
1.6 KiB
Java
package de.iwomm.propify_api.entity;
|
|
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.GeneratedValue;
|
|
import jakarta.persistence.Id;
|
|
|
|
import java.util.UUID;
|
|
|
|
@Entity
|
|
public class Property {
|
|
@Id
|
|
@GeneratedValue
|
|
private UUID id;
|
|
|
|
private String name;
|
|
private String street;
|
|
private String houseNumber;
|
|
private String zipCode;
|
|
private String city;
|
|
private String country;
|
|
private String notes;
|
|
|
|
public Property() {}
|
|
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getStreet() {
|
|
return street;
|
|
}
|
|
|
|
public void setStreet(String street) {
|
|
this.street = street;
|
|
}
|
|
|
|
public String getHouseNumber() {
|
|
return houseNumber;
|
|
}
|
|
|
|
public void setHouseNumber(String houseNumber) {
|
|
this.houseNumber = houseNumber;
|
|
}
|
|
|
|
public String getZipCode() {
|
|
return zipCode;
|
|
}
|
|
|
|
public void setZipCode(String zipCode) {
|
|
this.zipCode = zipCode;
|
|
}
|
|
|
|
public String getCity() {
|
|
return city;
|
|
}
|
|
|
|
public void setCity(String city) {
|
|
this.city = city;
|
|
}
|
|
|
|
public String getCountry() {
|
|
return country;
|
|
}
|
|
|
|
public void setCountry(String country) {
|
|
this.country = country;
|
|
}
|
|
|
|
public String getNotes() {
|
|
return this.notes;
|
|
}
|
|
|
|
public void setNotes(String notes) {
|
|
this.notes = notes;
|
|
}
|
|
}
|