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

    Envers AuditQuery - filter using AND / OR

    Vlada Pravenec Newbie

      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')