| For Example I am having two columns in a table, let's say distinct of Arrival*and *departure city code for all flights of an airlines; can give the value of airports handled by that airlines. 1. Should not use the native code : Then DB change is difficult i.e code change is required 2. Should not take Arrival column DISTINCT values separately; Departure column DISTINCT value separately and then work through code. This will reduce the performance. 3. Should not use any function .... like DB based stuff for this small stuff. Because it will be again difficult to change the DB Give some solution in the Hibernate point of view ....  |