add persist Generic class