82 lines
1.8 KiB
Java
82 lines
1.8 KiB
Java
package eu.eudat.model.persist;
|
|
|
|
import eu.eudat.commons.validation.old.FieldNotNullIfOtherSet;
|
|
import eu.eudat.commons.validation.old.ValidId;
|
|
import eu.eudat.model.persist.tenantconfig.TenantConfigPersist;
|
|
import jakarta.validation.constraints.*;
|
|
|
|
import java.util.UUID;
|
|
|
|
@FieldNotNullIfOtherSet(message = "{validation.hashempty}")
|
|
public class TenantPersist {
|
|
|
|
@ValidId(message = "{validation.invalidid}")
|
|
private UUID id;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
@Size(max= 200, message = "{validation.largerthanmax}")
|
|
private String code;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
@Size(max= 500, message = "{validation.largerthanmax}")
|
|
private String name;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String description;
|
|
|
|
private TenantConfigPersist config;
|
|
|
|
private String hash;
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
public void setCode(String code) {
|
|
this.code = code;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public TenantConfigPersist getConfig() {
|
|
return config;
|
|
}
|
|
|
|
public void setConfig(TenantConfigPersist config) {
|
|
this.config = config;
|
|
}
|
|
|
|
public String getHash() {
|
|
return hash;
|
|
}
|
|
|
|
public void setHash(String hash) {
|
|
this.hash = hash;
|
|
}
|
|
}
|