Tuesday, July 8, 2008

Hibernate: disjunction

Junction junction = Expression.disjunction();

    junction.add(Expression.or(Expression.eq("plurality", phrase.getPlurality()), Expression.eq("plurality", Constants.PHRASE_NEUTRAL)));

    dcPhrase.add(junction);