public boolean equals(Object other) { QueryKey that = (QueryKey) other; if ( !sqlQueryString.equals(that.sqlQueryString) ) return false; if ( !EqualsHelper.equals(firstRow, that.firstRow) || !EqualsHelper.equals(maxRows, that.maxRows) ) return false; if ( !EqualsHelper.equals(customTransformer, that.customTransformer) ) return false; if (types==null) { if (that.types!=null) return false; } else { if (that.types==null) return false; if ( types.length!=that.types.length ) return false; for ( int i=0; i<types.length; i++ ) { if ( types[i].getReturnedClass() != that.types[i].getReturnedClass() ) return false; if ( !types[i].isEqual( values[i], that.values[i], entityMode ) ) return false; } } if ( !EqualsHelper.equals(filters, that.filters) ) return false; if ( !EqualsHelper.equals(namedParameters, that.namedParameters) ) return false; return true; }
public int[] findDirty( Object[] x, Object[] y, Object owner, SessionImplementor session ) throws HibernateException { if ( !EqualsHelper.equals( x[0], y[0] ) ) { return new int[] { 0 }; } else { return null; } }
public int[] findModified( Object[] x, Object[] y, Object owner, SessionImplementor session ) throws HibernateException { if ( !EqualsHelper.equals( x[0], y[0] ) ) { return new int[] { 0 }; } else { return null; } }
private void validateLinesHaveTheSamePrice(BatchOrder order) { BatchOrderLine firstLine = order.getLines().iterator().next(); for (BatchOrderLine line : order.getLines()) { if (!EqualsHelper.equals(firstLine.getPrice(), line.getPrice())) { throw new InvalidOrder("Lines of this order have different prices"); } } }
private void validateLinesHaveTheSamePrice() { BatchOrderLine firstLine = order.getLines().iterator().next(); for (BatchOrderLine line : order.getLines()) { if (!EqualsHelper.equals(firstLine.getPrice(), line.getPrice())) { throw new InvalidOrder("Lines of this order have different prices"); } } }
@Override public boolean equals(Object x, Object y) throws HibernateException // NOSONAR { return EqualsHelper.equals(x, y); }
/** * This implementation delegates to the Hibernate EqualsHelper. * @see org.hibernate.util.EqualsHelper#equals */ @Override public boolean equals(Object x, Object y) throws HibernateException { return EqualsHelper.equals(x, y); }
public boolean isEqual(Object x, Object y) { return EqualsHelper.equals(x, y); }
public boolean isEqual(Object x, Object y, EntityMode entityMode) { return EqualsHelper.equals(x, y); }
/** * This implementation delegates to the Hibernate EqualsHelper. * @see org.hibernate.util.EqualsHelper#equals */ public boolean equals(Object x, Object y) throws HibernateException { return EqualsHelper.equals(x, y); }