Fix hibernate cannot insert record problem