creating a hibernate generic dao