I have a Bean with two depending Properties. The value-Property depends not only on the existance of the paymentType-Property but accessorily on its value.
I tried the following:
add("amount", ifTrueElse(eq("paymentType", PaymentType.CREDIT),
value("amount", gt(0.0d)), value("amount", lt(0.0d))));
How do I have to implement that ifThanElse Contraint for a Property depending on the Value of an other one?
org.springframework.beans.NotReadablePropertyException: Invalid property
'paymentType' of bean class [java.lang.Double]: Bean property 'paymentType'
is not readable or has an invalid getter method: Does the return type of the
getter match the parameter type of the setter?
Thanks for hints,