Moved entities to dto sub package

This commit is contained in:
Jim Martens 2020-07-18 12:42:24 +02:00
parent be6fb20550
commit ec5064f6b4
24 changed files with 28 additions and 29 deletions

View File

@ -1,6 +1,6 @@
package de.twomartens.oparlservice;
import de.twomartens.oparlservice.entity.System;
import de.twomartens.oparlservice.entity.dto.System;
import de.twomartens.oparlservice.interceptors.RequestTypeInterceptor;
import de.twomartens.oparlservice.interceptors.TraceIdInterceptor;
import org.junit.jupiter.api.BeforeEach;

View File

@ -1,6 +1,6 @@
package de.twomartens.oparlservice.actuator;
import de.twomartens.oparlservice.entity.System;
import de.twomartens.oparlservice.entity.dto.System;
import de.twomartens.oparlservice.interceptors.RequestTypeInterceptor;
import de.twomartens.oparlservice.interceptors.TraceIdInterceptor;
import lombok.extern.slf4j.Slf4j;

View File

@ -1,7 +1,7 @@
package de.twomartens.oparlservice.control;
import de.twomartens.oparlservice.entity.System;
import de.twomartens.oparlservice.entity.*;
import de.twomartens.oparlservice.entity.dto.*;
import de.twomartens.oparlservice.entity.dto.System;
import de.twomartens.oparlservice.service.OParlService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,10 +1,9 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;
import java.time.ZonedDateTime;
import java.util.List;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,4 +1,4 @@
package de.twomartens.oparlservice.entity;
package de.twomartens.oparlservice.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@ -1,8 +1,8 @@
package de.twomartens.oparlservice.service;
import de.twomartens.oparlservice.configs.OParlServiceProperties;
import de.twomartens.oparlservice.entity.System;
import de.twomartens.oparlservice.entity.*;
import de.twomartens.oparlservice.entity.dto.*;
import de.twomartens.oparlservice.entity.dto.System;
import org.springframework.stereotype.Service;
import java.util.Optional;

View File

@ -1,7 +1,7 @@
package de.twomartens.oparlservice.control;
import de.twomartens.oparlservice.entity.System;
import de.twomartens.oparlservice.entity.*;
import de.twomartens.oparlservice.entity.dto.*;
import de.twomartens.oparlservice.entity.dto.System;
import de.twomartens.oparlservice.service.OParlService;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
@ -687,4 +687,4 @@ class OParlControllerTest {
.papers(Collections.emptyList())
.build();
}
}
}