Java 从参数生成Hibernate条件查询

Java 从参数生成Hibernate条件查询,java,hibernate,criteria,factory,Java,Hibernate,Criteria,Factory,我必须使用从客户端获得的参数在后端应用程序中创建查询。考虑这个图表: 我有实体类型字段、这些实体的字段参数、关系、值和操作数。因此,在sql术语中,上表转换为: ... WHERE Item.reach_complience = ”<1%” and Item.technical.type = ”RES” and Item.technical.value <= ”1k” and Item.technical.value >= ”4K7” and (Ite

我必须使用从客户端获得的参数在后端应用程序中创建查询。考虑这个图表:

我有实体类型字段、这些实体的字段参数、关系、值和操作数。因此,在sql术语中,上表转换为:

... WHERE Item.reach_complience = ”<1%”
  and  Item.technical.type = ”RES”
  and  Item.technical.value <=  ”1k”
  and  Item.technical.value >= ”4K7”
  and  (Item.technical.footprint = ”RC0603” or Item.technical.footprint = ”RC0805”)
  and  Item.classification.incurrent_handling = ”prefered-to-use”
我真的不想在这里重新创造生活,所以我的问题是: 是否有使用JPA或更具体地说Hibernate的Criteria factory库,或者是否有可用于创建Criteria查询的第三方库?我们在前端使用EclipseRCP,数据通过ApacheCXF服务到达后端Spring。我希望使用JPA的查询语法编写可维护的。我认为ISearch是最好的: