Best Solution for Column Compares

2006-10-23 Thread Thoralf Rickert
Hi! What is the best solution to compare two columns in a criteria? Or is a CUSTOM-Criteria in criteria.add(COLUMN_A,(Object)(COLUMN_A+=+COLUMN_B),Criteria.CUSTOM); the only possible solution (using plain SQL) or is there something better? bye Thoralf

Best Practice: Column Compares

2006-10-23 Thread Thoralf Rickert
Hi! What is the best solution to compare two columns in a criteria? Or is a CUSTOM-Criteria in criteria.add(COLUMN_A,(Object)(COLUMN_A+=+COLUMN_B),Criteria.CUSTOM); the only possible solution (using plain SQL) or is there something better? bye Thoralf