Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save obedmhg/49a4c4a6b89a5ddb9c4d872d70958575 to your computer and use it in GitHub Desktop.
Save obedmhg/49a4c4a6b89a5ddb9c4d872d70958575 to your computer and use it in GitHub Desktop.
CompareValuesPropertyDescriptor in action on xml repository definition
<property name="isNewArrival" data-type="boolean" property-type="com.common.propertydescriptor.CompareValuesPropertyDescriptor">
<attribute name="compareOperator" value="lt" />
<attribute name="leftSideValue" value="daysAvailable" />
<attribute name="leftSideType" value="property" />
<attribute name="rightSideValue" value="30" />
<attribute name="rightSideType" value="int" />
</property>
<property name="onSale" data-type="boolean" property-type="com.common.propertydescriptor.CompareValuesPropertyDescriptor">
<attribute name="compareOperator" value="lt" />
<attribute name="leftSideValue" value="salePrice" />
<attribute name="leftSideType" value="property" />
<attribute name="rightSideValue" value="listPrice" />
<attribute name="rightSideType" value="property" />
</property>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment