add generics dao and entity