Skip to content

Commit

Permalink
Merge pull request #51 from anasabbal/notiffff
Browse files Browse the repository at this point in the history
begin unit testing in customer-service and add big change
  • Loading branch information
anasabbal authored Feb 8, 2023
2 parents 3ff80a8 + 7fe99b5 commit b44dad0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

public interface BaseRepository <String, E>{

Map<String, E> findAll() throws InstantiationException, IllegalAccessException;
<C extends BookCommand> E add(C entity, Class<E> clazz);
void delete(E entity);
E findById(String entityId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import javax.annotation.PostConstruct;
import java.lang.reflect.ParameterizedType;
import java.util.Map;




Expand All @@ -30,11 +30,6 @@ private void init(){
hashOperations = redisTemplate.opsForHash();
}

@Override
public Map<String, E> findAll() throws InstantiationException, IllegalAccessException {
return hashOperations.@(getParameterTypeName(), null);
}

@SneakyThrows
@Override
public <C extends BookCommand> E add(C entity, Class<E> clazz) {
Expand Down
8 changes: 8 additions & 0 deletions core-comm/src/main/java/com/nas/core/dto/BaseMapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.nas.core.dto;

import java.util.List;

public interface BaseMapper <DTO, E>{
DTO toDto(E entity);
List<DTO> toListDto(List<E> eList);
}

0 comments on commit b44dad0

Please sign in to comment.