fix the hibernate validation expr issue and amend the sale sql