improve generics for collection save in service and dao layer