This commit is contained in:
Constantin Simonis 2024-09-04 12:05:55 +02:00
parent 390e2cc676
commit 1ced5f723e
10 changed files with 12 additions and 23 deletions

@ -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.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.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.time.LocalDateTime;
@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;
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 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.Size;

@ -1,4 +1,4 @@
package de.szut.webshop.model;
package de.szut.webshop.supplier;
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.RequestBody;
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.validation.constraints.NotNull;
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;
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;
@Service