package pl.uservices.dojrzewatr.endpoints.wort;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class WortDto
{
	private final Integer quantity;

	@JsonCreator
	public WortDto(@JsonProperty("quantity") final Integer quantity)
	{
		this.quantity = quantity;
	}

	public Integer getQuantity()
	{
		return quantity;
	}
}

@@ -42,16 +42,154 @@
 .wort;%0A%0A
+import static org.apache.commons.lang.builder.ToStringStyle.SHORT_PREFIX_STYLE;%0A%0Aimport org.apache.commons.lang.builder.ToStringBuilder;%0A%0A
 import c
@@ -514,11 +514,167 @@
 tity;%0A%09%7D
+%0A%0A%09@Override%0A%09public String toString()%0A%09%7B%0A%09%09return new ToStringBuilder(this, SHORT_PREFIX_STYLE) //%0A%09%09%09%09.append(%22quantity%22, quantity) //%0A%09%09%09%09.toString();%0A%09%7D
 %0A%7D%0A

to String