hibernate dao works with record pages