1 Reply Latest reply on Aug 29, 2011 7:42 AM by adamw

    Envers AuditQuery - filter using AND / OR

    pravenec

      how can I filter AuditQuery using AND / OR?

      I can simple do (name = 'John' and address is not null):

      query.add(AuditEntity.property("name").eq("John"));  query.add(AuditEntity.property("address").isNotNull);  

      But how can I do (name = 'John' and address is not null) or (job = 'Director' and carColor = 'Green')