refacto
This commit is contained in:
parent
390e2cc676
commit
1ced5f723e
@ -1,7 +1,5 @@
|
|||||||
package de.szut.webshop.controller;
|
package de.szut.webshop.article;
|
||||||
|
|
||||||
import de.szut.webshop.model.ArticleEntity;
|
|
||||||
import de.szut.webshop.service.ArticleService;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package de.szut.webshop.model;
|
package de.szut.webshop.article;
|
||||||
|
|
||||||
|
import de.szut.webshop.supplier.SupplierEntity;
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package de.szut.webshop.repository;
|
package de.szut.webshop.article;
|
||||||
|
|
||||||
import de.szut.webshop.model.ArticleEntity;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
public interface ArticleRepository extends JpaRepository<ArticleEntity, Long> {
|
public interface ArticleRepository extends JpaRepository<ArticleEntity, Long> {
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package de.szut.webshop.service;
|
package de.szut.webshop.article;
|
||||||
|
|
||||||
import de.szut.webshop.model.ArticleEntity;
|
|
||||||
import de.szut.webshop.repository.ArticleRepository;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package de.szut.webshop.dto;
|
package de.szut.webshop.supplier;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
@ -1,4 +1,4 @@
|
|||||||
package de.szut.webshop.model;
|
package de.szut.webshop.supplier;
|
||||||
|
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
package de.szut.webshop.controller;
|
package de.szut.webshop.supplier;
|
||||||
|
|
||||||
import de.szut.webshop.dto.AddSupplierDto;
|
|
||||||
import de.szut.webshop.model.ContactEntity;
|
|
||||||
import de.szut.webshop.model.SupplierEntity;
|
|
||||||
import de.szut.webshop.service.SupplierService;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package de.szut.webshop.model;
|
package de.szut.webshop.supplier;
|
||||||
|
|
||||||
|
import de.szut.webshop.article.ArticleEntity;
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package de.szut.webshop.repository;
|
package de.szut.webshop.supplier;
|
||||||
|
|
||||||
import de.szut.webshop.model.SupplierEntity;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
public interface SupplierRepository extends JpaRepository<SupplierEntity, Long> {
|
public interface SupplierRepository extends JpaRepository<SupplierEntity, Long> {
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package de.szut.webshop.service;
|
package de.szut.webshop.supplier;
|
||||||
|
|
||||||
import de.szut.webshop.model.SupplierEntity;
|
|
||||||
import de.szut.webshop.repository.SupplierRepository;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
Loading…
Reference in New Issue
Block a user