spring,hibernate,javascript