Apache OFBiz:<entity-condition> 和 <entity-and> 之间的区别?

Apache OFBiz: Difference between <entity-condition> and <entity-and>?

我是 OFBiz 的新手,在阅读电子书时我无法区分这两种访问数据的方法 database.and 我 google 但我没有找到合适的解释 same.thanks 提前寻求帮助。

<entity-condition>
  <field-map value="">
</entity-condition>

<entity-and>
 <field-map value="">
</entity-and>

entity-and 用于从数据库中获取数据,其中需要多个主键(复合 PK)来获取单个记录,并且您想要匹配任何字段的所有记录,即像

这样的查询
select * from table where Colname=abc;

在实体条件下,您可以使用 'AND'/'OR' 子句编写多个实体条件实验。

错误是你在实体条件中使用字段映射使用实体表达式

 <entity-condition list="anyList" entity-name="Table">
   <condition-expr field-name="colName1" from-field="variable1"/>
   <condition-expr field-name="colName2" from-field="variable2"/>
 </entity-condition>