diff --git a/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/logic/dto/itemstocksamm/ItemUnitEnumeration.java b/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/logic/dto/itemstocksamm/ItemUnitEnumeration.java index 592ce5b5..0b35c94c 100644 --- a/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/logic/dto/itemstocksamm/ItemUnitEnumeration.java +++ b/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/logic/dto/itemstocksamm/ItemUnitEnumeration.java @@ -21,16 +21,11 @@ */ package org.eclipse.tractusx.puris.backend.stock.logic.dto.itemstocksamm; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Optional; - /** * Generated class {@link ItemUnitEnumeration}. */ -@JsonFormat(shape = JsonFormat.Shape.OBJECT) public enum ItemUnitEnumeration { UNIT_PIECE("unit:piece"), UNIT_SET("unit:set"), @@ -74,13 +69,6 @@ public enum ItemUnitEnumeration { this.value = value; } - @JsonCreator - static ItemUnitEnumeration enumDeserializationConstructor(String value) { - return Optional.of(ItemUnitEnumeration.valueOf(ItemUnitEnumeration.class, value)).orElseThrow( - () -> new IllegalArgumentException( - "Tried to parse value \"" + value + "\", but there is no enum field like that in ItemUnitEnumeration")); - } - @JsonValue public String getValue() { return value;