Refactor Package Layout

This commit is contained in:
CodeSteak 2020-04-29 22:44:16 +02:00
parent bad1d94f8a
commit de6c750e7f
48 changed files with 137 additions and 99 deletions

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.shop;
package org.hso.ecommerce;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class ShopController {
}

View File

@ -0,0 +1,7 @@
package org.hso.ecommerce.action.somepackage;
public class DemoAction {
// TODO: remove me.
// mksubpackage
}

View File

@ -1,7 +1,7 @@
package org.hso.ecommerce.app;
import org.hso.ecommerce.db.repos.UserRepository;
import org.hso.ecommerce.entities.User;
import org.hso.ecommerce.entities.user.UserRepository;
import org.hso.ecommerce.entities.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

View File

@ -1,7 +1,7 @@
package org.hso.ecommerce.components;
import org.hso.ecommerce.db.repos.UserRepository;
import org.hso.ecommerce.entities.User;
import org.hso.ecommerce.entities.user.UserRepository;
import org.hso.ecommerce.entities.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.user;
package org.hso.ecommerce.controller;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class ArticleController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class BookingController {
}

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.intern;
package org.hso.ecommerce.controller;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class LoginController {
}

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.login;
package org.hso.ecommerce.controller;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class UserController {
}

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.intern.article;
package org.hso.ecommerce.controller.intern;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class IndexController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller.intern;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class WarehouseController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller.intern.customers;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class IndexController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller.intern.customers;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class OrderController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller.intern.suppliers;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class IndexController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller.intern.suppliers;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class OfferController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller.intern.suppliers;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class OrderController {
}

View File

@ -0,0 +1,8 @@
package org.hso.ecommerce.controller.shop;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class ArticleController {
}

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.intern.customers;
package org.hso.ecommerce.controller.shop;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class CheckoutController {
}

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.shop.article;
package org.hso.ecommerce.controller.shop;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class IndexController {
}

View File

@ -1,8 +1,8 @@
package org.hso.ecommerce.intern.booking;
package org.hso.ecommerce.controller.shop;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
public class SearchController {
}

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.booking;
import javax.persistence.*;

View File

@ -1,4 +1,7 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.booking;
import org.hso.ecommerce.entities.supplier.Supplier;
import org.hso.ecommerce.entities.user.User;
import javax.persistence.*;

View File

@ -1,4 +1,7 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.booking;
import org.hso.ecommerce.entities.shop.CustomerOrder;
import org.hso.ecommerce.entities.supplier.SupplierOrder;
import javax.persistence.*;

View File

@ -1,4 +1,6 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.booking;
import org.hso.ecommerce.entities.booking.PaymentMethod;
import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.booking;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.cron;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.dashboard;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.shop;
import javax.persistence.Embeddable;

View File

@ -1,4 +1,6 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.shop;
import org.hso.ecommerce.entities.supplier.ArticleOffer;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,6 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.shop;
import org.hso.ecommerce.entities.shop.Article;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,6 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.shop;
import org.hso.ecommerce.entities.user.User;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.shop;
import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.shop;
import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.supplier;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.supplier;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.supplier;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,5 +1,7 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.user;
import org.hso.ecommerce.entities.booking.PaymentMethod;
import org.hso.ecommerce.entities.shop.Address;
import org.springframework.security.crypto.bcrypt.BCrypt;
import javax.persistence.*;

View File

@ -1,6 +1,6 @@
package org.hso.ecommerce.db.repos;
package org.hso.ecommerce.entities.user;
import org.hso.ecommerce.entities.User;
import org.hso.ecommerce.entities.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

View File

@ -1,4 +1,4 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.warehouse;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,6 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.warehouse;
import org.hso.ecommerce.entities.shop.Article;
import javax.persistence.*;

View File

@ -1,4 +1,6 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.warehouse;
import org.hso.ecommerce.entities.shop.Article;
import javax.persistence.*;

View File

@ -1,4 +1,7 @@
package org.hso.ecommerce.entities;
package org.hso.ecommerce.entities.warehouse;
import org.hso.ecommerce.entities.shop.CustomerOrder;
import org.hso.ecommerce.entities.supplier.SupplierOrder;
import javax.persistence.*;

View File

@ -1,8 +0,0 @@
package org.hso.ecommerce.intern.customers.order;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
}

View File

@ -1,8 +0,0 @@
package org.hso.ecommerce.intern.suppliers;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
}

View File

@ -1,8 +0,0 @@
package org.hso.ecommerce.intern.suppliers.offer;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
}

View File

@ -1,8 +0,0 @@
package org.hso.ecommerce.intern.suppliers.order;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
}

View File

@ -1,8 +0,0 @@
package org.hso.ecommerce.intern.warehouse;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
}

View File

@ -1,8 +0,0 @@
package org.hso.ecommerce.shop.checkout;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
}

View File

@ -1,8 +0,0 @@
package org.hso.ecommerce.shop.search;
import org.springframework.stereotype.Controller;
@Controller
//@RequestMapping("...")
public class RequestController {
}