added static method clear to entity