Howto: Criteria API

Issue #23 resolved
Indrajit Pingale
created an issue

Hi,

Thanks for valuable support. How could I create AND junction with addNotEqualsCondition()?

I tried doing below, but no API found.

criteriaBelowPurgeDate.addJunction(criteriaBelowPurgeDate.createAndJunction().**addNotEqualsCondition("State",AssessState)**;

But couldn't find addNotEqualsCondition in it.

Thanks, Indrajit

Comments (6)

  1. Fabio Todaro

    it's old i know but if you are still intrested look at my issue Issue #26, my solution was to use something like this:

    criteriaBelowPurgeDate.addNotEqualsCondition("Property", Value)
                      .addNotEqualsCondition("OtherProperty", OtherValue)
    
  2. Log in to comment