EntityConditionSubSelect warning

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

EntityConditionSubSelect warning

matarazzo angelo
Hi,
I 'm using EntityConditionSubSelect object to do complex queries, there is a only example in ProductSearch.java.
My query is: Select name from MyEntity where recordId equals any Select recordId from Record where recordName equals 'Angelo'
However this warning always appears:
I [         EntityExpr.java:271:WARN ]
---- exception report ----------------------------------------------------------
=-=-=-=-=-=-=-=-= Database type warning in EntityExpr

=-=-=-=-=-=-=-=-= In entity field [Record.triggeredByEventId] set the value passed in

[org.ofbiz.entity.condition.EntityConditionSubSelect] is not compatible with the Java type of the field [String]
Exception:

java.lang.Exception
Message: Location of database type warning


recordId is a id.neType

Can anyone help me to manage resolve this warning message that uselessly fill ofbiz.log ?

Thank you
Reply | Threaded
Open this post in threaded view
|

Re: EntityConditionSubSelect warning

matarazzo angelo
I open an issue with a a patch
https://issues.apache.org/jira/browse/OFBIZ-3145

matarazzo angelo wrote
Hi,
I 'm using EntityConditionSubSelect object to do complex queries, there is a only example in ProductSearch.java.
My query is: Select name from MyEntity where recordId equals any Select recordId from Record where recordName equals 'Angelo'
However this warning always appears:
I [         EntityExpr.java:271:WARN ]
---- exception report ----------------------------------------------------------
=-=-=-=-=-=-=-=-= Database type warning in EntityExpr

=-=-=-=-=-=-=-=-= In entity field [Record.triggeredByEventId] set the value passed in

[org.ofbiz.entity.condition.EntityConditionSubSelect] is not compatible with the Java type of the field [String]
Exception:

java.lang.Exception
Message: Location of database type warning


recordId is a id.neType

Can anyone help me to manage resolve this warning message that uselessly fill ofbiz.log ?

Thank you