fixed a spring orm bug