updates
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
package de.iwomm.propify_api.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
public class PropertyStatus {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.UUID)
|
||||
@Column(nullable = false)
|
||||
private UUID id;
|
||||
|
||||
@Column(nullable = false)
|
||||
private String name;
|
||||
|
||||
@Column(nullable = false)
|
||||
private int sortOrder;
|
||||
|
||||
@OneToMany(mappedBy = "propertyStatus", orphanRemoval = true)
|
||||
private Set<Property> properties = new LinkedHashSet<>();
|
||||
|
||||
public PropertyStatus() {
|
||||
|
||||
}
|
||||
|
||||
public Set<Property> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(Set<Property> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public PropertyStatus(String name, int sortOrder) {
|
||||
this.name = name;
|
||||
this.sortOrder = sortOrder;
|
||||
}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getSortOrder() {
|
||||
return sortOrder;
|
||||
}
|
||||
|
||||
public void setSortOrder(int order) {
|
||||
this.sortOrder = order;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user