Commit 2d7b36c0 authored by Ondřej Pavlica's avatar Ondřej Pavlica
Browse files

Remove unused arguments from PersistenceServiceImpl

parent 8d0f7726
......@@ -27,14 +27,9 @@ public abstract class PersistenceServiceImpl<DTO extends PersistentDtoBase, ENTI
@Getter
private final DaoBase<ENTITY> dao;
private final Class<DTO> dtoClass;
private final Class<ENTITY> entityClass;
private final EntityMapper<DTO, ENTITY> mapper;
public PersistenceServiceImpl(Class<DTO> dtoClass, Class<ENTITY> entityClass, DaoBase<ENTITY> dao, EntityMapper<DTO, ENTITY> mapper) {
this.dtoClass = dtoClass;
this.entityClass = entityClass;
public PersistenceServiceImpl(DaoBase<ENTITY> dao, EntityMapper<DTO, ENTITY> mapper) {
this.dao = dao;
this.mapper = mapper;
}
......
......@@ -20,6 +20,6 @@ public class OrderItemServiceImpl extends PersistenceServiceImpl<OrderItemDto, O
@Autowired
public OrderItemServiceImpl(OrderItemDao orderItemDao, EntityMapper<OrderItemDto, OrderItem> mapper) {
super(OrderItemDto.class, OrderItem.class, orderItemDao, mapper);
super(orderItemDao, mapper);
}
}
......@@ -34,7 +34,7 @@ public class OrderServiceImpl extends PersistenceServiceImpl<OrderDto, Order> im
EntityMapper<OrderDto, Order> orderMapper,
EntityMapper<OrderItemDto, OrderItem> orderItemMapper,
EntityMapper<WineBottleDto, WineBottle> wineBottleMapper) {
super(OrderDto.class, Order.class, orderDao, orderMapper);
super(orderDao, orderMapper);
this.orderDao = orderDao;
this.orderItemMapper = orderItemMapper;
this.wineBottleMapper = wineBottleMapper;
......
......@@ -21,7 +21,7 @@ public class ProductReviewServiceImpl extends PersistenceServiceImpl<ProductRevi
@Autowired
public ProductReviewServiceImpl(ProductReviewDao productReviewDao, EntityMapper<ProductReviewDto, ProductReview> mapper) {
super(ProductReviewDto.class, ProductReview.class, productReviewDao, mapper);
super(productReviewDao, mapper);
}
@Override
......
......@@ -21,7 +21,7 @@ import java.util.stream.Collectors;
public class UserRoleServiceImpl extends PersistenceServiceImpl<UserRoleDto, UserRole> implements UserRoleService {
@Autowired
public UserRoleServiceImpl(UserRoleDao userRoleDao, EntityMapper<UserRoleDto, UserRole> mapper) {
super(UserRoleDto.class, UserRole.class, userRoleDao, mapper);
super(userRoleDao, mapper);
}
@Override
......
......@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
public class UserServiceImpl extends PersistenceServiceImpl<UserDto, User> implements UserService {
@Autowired
public UserServiceImpl(UserDao userDao, EntityMapper<UserDto, User> mapper) {
super(UserDto.class, User.class, userDao, mapper);
super(userDao, mapper);
}
@Override
......
......@@ -20,6 +20,6 @@ public class GrapeServiceImpl extends PersistenceServiceImpl<GrapeDto, Grape> im
@Autowired
public GrapeServiceImpl(GrapeDao grapeDao, EntityMapper<GrapeDto, Grape> mapper) {
super(GrapeDto.class, Grape.class, grapeDao, mapper);
super(grapeDao, mapper);
}
}
......@@ -21,7 +21,7 @@ public class HarvestServiceImpl extends PersistenceServiceImpl<HarvestDto, Harve
@Autowired
public HarvestServiceImpl(HarvestDao harvestDao, EntityMapper<HarvestDto, Harvest> mapper) {
super(HarvestDto.class, Harvest.class, harvestDao, mapper);
super(harvestDao, mapper);
}
@Override
......
......@@ -21,7 +21,7 @@ public class WineBottleServiceImpl extends PersistenceServiceImpl<WineBottleDto,
@Autowired
public WineBottleServiceImpl(WineBottleDao wineBottleDao, EntityMapper<WineBottleDto, WineBottle> mapper) {
super(WineBottleDto.class, WineBottle.class, wineBottleDao, mapper);
super(wineBottleDao, mapper);
}
......
......@@ -21,7 +21,7 @@ public class WineTypeServiceImpl extends PersistenceServiceImpl<WineTypeDto, Win
@Autowired
public WineTypeServiceImpl(WineTypeDao wineTypeDao, EntityMapper<WineTypeDto, WineType> mapper) {
super(WineTypeDto.class, WineType.class, wineTypeDao, mapper);
super(wineTypeDao, mapper);
}
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment