e.printStackTrace();
}
log.info("Selecting mechanic for order.");
log.info("Mapping to order entity and mergin it to database.");
OrderEntity orderEntity = DozerHelper.map(order, OrderEntity.class);
orderEntity = orderRepository.merge(orderEntity);
orderEntity
.setOrderRegNo(order.generateOrderRegNo(orderEntity.getId()));
// Check
List<OrderEntity> result = orderRepository.findByCustomer(
customerEntity, null, null, null);