complite hibernate dao and tests