generated from 2martens/template-service
Added OrganizationType to symbolize limited options
This commit is contained in:
parent
02efc1b76a
commit
75ad80e760
|
@ -73,7 +73,7 @@ public class Organization {
|
||||||
|
|
||||||
@Schema(description = "rough categorization of the organization", nullable = true,
|
@Schema(description = "rough categorization of the organization", nullable = true,
|
||||||
allowableValues = "Gremium, Partei, Fraktion, Verwaltungsbereich, externes Gremium, Institution, Sonstiges")
|
allowableValues = "Gremium, Partei, Fraktion, Verwaltungsbereich, externes Gremium, Institution, Sonstiges")
|
||||||
private final String organizationType;
|
private final OrganizationType organizationType;
|
||||||
|
|
||||||
@Schema(description = "type of organization", nullable = true)
|
@Schema(description = "type of organization", nullable = true)
|
||||||
private final String classification;
|
private final String classification;
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
package de.twomartens.oparlservice.entity;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Getter(onMethod_={@JsonValue})
|
||||||
|
@ToString
|
||||||
|
public enum OrganizationType {
|
||||||
|
BODY("Gremium"),
|
||||||
|
PARTY("Partei"),
|
||||||
|
FACTION("Fraktion"),
|
||||||
|
ADMINISTRATIVE_AREA("Verwaltungsbereich"),
|
||||||
|
EXTERNAL_BODY("externes Gremium"),
|
||||||
|
INSTITUTION("Institution"),
|
||||||
|
OTHER("Sonstiges");
|
||||||
|
|
||||||
|
private final String value;
|
||||||
|
}
|
Loading…
Reference in New Issue