// Path: connote-service/src/main/java/de/codecentric/resilient/connote/entity/Connote.java
// @Entity
// public class Connote {
// 
//     @Id
//     private Long connote;
// 
//     @Column(name = "created", nullable = false)
//     private LocalDateTime created = LocalDateTime.now();
// 
//     public Connote(Long connote) {
// 
//         this.connote = connote;
//     }
// 
//     public Connote() {
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public LocalDateTime getCreated() {
//         return created;
//     }
// 
//     public void setCreated(LocalDateTime created) {
//         this.created = created;
//     }
// 
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/repository/ConnoteRepository.java
// public interface ConnoteRepository extends CrudRepository<Connote, Long> {
// 
//     @Override
//     Connote save(Connote connote);
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/utils/RandomConnoteGenerator.java
// @Service
// @RefreshScope
// public class RandomConnoteGenerator {
// 
//     // Connote start range
//     private DynamicLongProperty startRange =
//             DynamicPropertyFactory.getInstance().getLongProperty("connote.range.start", 1000000);
// 
//     // Connote end range
//     private DynamicLongProperty endRange = DynamicPropertyFactory.getInstance().getLongProperty("connote.range.end", 5000000);
// 
//     @Value("${connote.range.start}")
//     private int connoteStart;
// 
//     @Value("${connote.range.end}")
//     private int connoteEnd;
// 
//     public long randomNumber() {
//         startRange.get();
//         endRange.get();
//         return RandomUtils.nextLong(connoteStart, connoteEnd);
// 
//         //return RandomUtils.nextLong(startRange.get(), endRange.get());
//     }
// }
// 
// Path: service-library/src/main/java/de/codecentric/resilient/dto/ConnoteDTO.java
// @JsonInclude(JsonInclude.Include.NON_NULL)
// public class ConnoteDTO extends FallbackAbstractDTO {
// 
//     @JsonProperty(required = true)
//     private Long connote;
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
// }


import de.codecentric.resilient.connote.entity.Connote;
import de.codecentric.resilient.connote.repository.ConnoteRepository;
import de.codecentric.resilient.connote.utils.RandomConnoteGenerator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import de.codecentric.resilient.dto.ConnoteDTO;
package de.codecentric.resilient.connote.service;


/**
 * @author Benjamin Wilms
 */
@Service
public class ConnoteService {

    private static final Logger LOGGER = LoggerFactory.getLogger(ConnoteService.class);

// Path: connote-service/src/main/java/de/codecentric/resilient/connote/entity/Connote.java
// @Entity
// public class Connote {
// 
//     @Id
//     private Long connote;
// 
//     @Column(name = "created", nullable = false)
//     private LocalDateTime created = LocalDateTime.now();
// 
//     public Connote(Long connote) {
// 
//         this.connote = connote;
//     }
// 
//     public Connote() {
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public LocalDateTime getCreated() {
//         return created;
//     }
// 
//     public void setCreated(LocalDateTime created) {
//         this.created = created;
//     }
// 
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/repository/ConnoteRepository.java
// public interface ConnoteRepository extends CrudRepository<Connote, Long> {
// 
//     @Override
//     Connote save(Connote connote);
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/utils/RandomConnoteGenerator.java
// @Service
// @RefreshScope
// public class RandomConnoteGenerator {
// 
//     // Connote start range
//     private DynamicLongProperty startRange =
//             DynamicPropertyFactory.getInstance().getLongProperty("connote.range.start", 1000000);
// 
//     // Connote end range
//     private DynamicLongProperty endRange = DynamicPropertyFactory.getInstance().getLongProperty("connote.range.end", 5000000);
// 
//     @Value("${connote.range.start}")
//     private int connoteStart;
// 
//     @Value("${connote.range.end}")
//     private int connoteEnd;
// 
//     public long randomNumber() {
//         startRange.get();
//         endRange.get();
//         return RandomUtils.nextLong(connoteStart, connoteEnd);
// 
//         //return RandomUtils.nextLong(startRange.get(), endRange.get());
//     }
// }
// 
// Path: service-library/src/main/java/de/codecentric/resilient/dto/ConnoteDTO.java
// @JsonInclude(JsonInclude.Include.NON_NULL)
// public class ConnoteDTO extends FallbackAbstractDTO {
// 
//     @JsonProperty(required = true)
//     private Long connote;
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
// }


// Path: connote-service/src/main/java/de/codecentric/resilient/connote/service/ConnoteService.java
import de.codecentric.resilient.connote.entity.Connote;
import de.codecentric.resilient.connote.repository.ConnoteRepository;
import de.codecentric.resilient.connote.utils.RandomConnoteGenerator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import de.codecentric.resilient.dto.ConnoteDTO;

package de.codecentric.resilient.connote.service;


/**
 * @author Benjamin Wilms
 */
@Service
public class ConnoteService {

    private static final Logger LOGGER = LoggerFactory.getLogger(ConnoteService.class);

    private ConnoteRepository connoteRepository;