I have encountered a problem to make EntityCondition in OFBiz. I want to generate a condition which will compare two fields in an entity. Similar SQL query is like this.
select * from tableName where fromDate > lastUpdatedStamp
I have used
EntityCondition.makeCondition("fromDate", EntityComparisonOperator.GREATER_THAN, EntityFieldValue.makeFieldValue("lastUpdatedStamp"))
But it does not help. When I try to execute this it says
Key(0), with value (fromDate > lastUpdatedStamp) is not a string
. Do anyone know how this can be achive in OFBiz?