Skip to content

Commit

Permalink
rename package properly
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlxs committed Jul 29, 2024
1 parent b09da45 commit 01c5517
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ ARG DEPENDENCY=/workspace/app/build/dependency
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT ["java","-cp","app:app/lib/*","de.unistuttgart.iste.meitrex.template.TemplateForMicroservicesApplication"]
ENTRYPOINT ["java","-cp","app:app/lib/*","de.unistuttgart.iste.meitrex.assignment_service.AssignmentServiceApplication"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This package contains the GraphQL controllers (and other types of controllers if
In some services, there is also a class called SubscriptionController which handles all dapr event subscriptions.

More information can be found in
the [Controller package](src/main/java/de/unistuttgart/iste/meitrex/template/controller/package-info.java).
the [Controller package](src/main/java/de/unistuttgart/iste/meitrex/assignment_service/controller/package-info.java).

### Dapr package

Expand All @@ -64,7 +64,7 @@ The DTOs are used to transfer data between the GraphQL controller and the servic
This package is used for exception handling. Note that with GraphQL, the exceptions are not thrown directly, but are wrapped in a `GraphQLException`, which is different that from the usual Spring Boot approach.

More information can be found in
the [Exception package](src/main/java/de/unistuttgart/iste/meitrex/template/exception/package-info.java).
the [Exception package](src/main/java/de/unistuttgart/iste/meitrex/assignment_service/exception/package-info.java).

### Persistence package

Expand All @@ -87,8 +87,8 @@ The 'mapper' package is responsible for the mapping logic between the database e
This structure helps organize the database-related components of the project, making it easier to manage and maintain.

More information can be found in
the [Entity package](src/main/java/de/unistuttgart/iste/meitrex/template/persistence/entity/package-info.java) and
the [Repository package](src/main/java/de/unistuttgart/iste/meitrex/template/persistence/repository/package-info.java).
the [Entity package](src/main/java/de/unistuttgart/iste/meitrex/assignment_service/persistence/entity/package-info.java) and
the [Repository package](src/main/java/de/unistuttgart/iste/meitrex/assignment_service/persistence/repository/package-info.java).

### Service package

Expand All @@ -97,7 +97,7 @@ the [Repository package](src/main/java/de/unistuttgart/iste/meitrex/template/per
This package contains all classes that are used to handle the business logic of the microservice. Services are annotated with the `@Service` annotation. Services contain only business logic and delegate the data access to the persistence layer (repositories).

More information can be found in
the [Service package](src/main/java/de/unistuttgart/iste/meitrex/template/service/package-info.java).
the [Service package](src/main/java/de/unistuttgart/iste/meitrex/assignment_service/service/package-info.java).

### Validation package

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.unistuttgart.iste.meitrex.template.config;
package de.unistuttgart.iste.meitrex.assignment_service.config;

import graphql.scalars.ExtendedScalars;
import graphql.validation.rules.OnValidationErrorStrategy;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.unistuttgart.iste.meitrex.template.config;
package de.unistuttgart.iste.meitrex.assignment_service.config;

import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.Bean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* This package should contain any classes that are used to configure the application.
*/
package de.unistuttgart.iste.meitrex.template.config;
package de.unistuttgart.iste.meitrex.assignment_service.config;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.unistuttgart.iste.meitrex.template.controller;
package de.unistuttgart.iste.meitrex.assignment_service.controller;

import de.unistuttgart.iste.meitrex.generated.dto.Template;
import de.unistuttgart.iste.meitrex.template.service.TemplateService;
import de.unistuttgart.iste.meitrex.assignment_service.service.TemplateService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.graphql.data.method.annotation.QueryMapping;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
* An example of our dummy backend would be <a href=https://github.com/IT-REX-Platform/dummy-backend/blob/master/api_gateway_service/src/main/java/de/unistuttgart/iste/meitrex/apigateway/course/CourseController.java>
* this controller</a>.
*/
package de.unistuttgart.iste.meitrex.template.controller;
package de.unistuttgart.iste.meitrex.assignment_service.controller;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* This package should contain all classes that are used to communicate with Dapr, e.g. using pub sub.
*/
package de.unistuttgart.iste.meitrex.template.dapr;
package de.unistuttgart.iste.meitrex.assignment_service.dapr;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.unistuttgart.iste.meitrex.template.exception;
package de.unistuttgart.iste.meitrex.assignment_service.exception;

import de.unistuttgart.iste.meitrex.common.exception.ExceptionToGraphQlErrorConverter;
import graphql.GraphQLError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* More info about exception handling with GraphQL can be found here:
* https://www.baeldung.com/spring-graphql-error-handling
*/
package de.unistuttgart.iste.meitrex.template.exception;
package de.unistuttgart.iste.meitrex.assignment_service.exception;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.unistuttgart.iste.meitrex.template.persistence.entity;
package de.unistuttgart.iste.meitrex.assignment_service.persistence.entity;

import jakarta.persistence.*;
import lombok.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
* To avoid having to implement getters, setters, builders, etc. we use <a href=https://projectlombok.org/>Lombok</a>.
* The Lombok annotations (e.g. {@code @Data}) should be used in the entities.
*/
package de.unistuttgart.iste.meitrex.template.persistence.entity;
package de.unistuttgart.iste.meitrex.assignment_service.persistence.entity;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.unistuttgart.iste.meitrex.template.persistence.mapper;
package de.unistuttgart.iste.meitrex.assignment_service.persistence.mapper;

import de.unistuttgart.iste.meitrex.generated.dto.Template;
import de.unistuttgart.iste.meitrex.template.persistence.entity.TemplateEntity;
import de.unistuttgart.iste.meitrex.assignment_service.persistence.entity.TemplateEntity;
import lombok.RequiredArgsConstructor;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* This package contains all the mapper classes that map between DTOs and entities.
*/
package de.unistuttgart.iste.meitrex.template.persistence.mapper;
package de.unistuttgart.iste.meitrex.assignment_service.persistence.mapper;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.unistuttgart.iste.meitrex.template.persistence.repository;
package de.unistuttgart.iste.meitrex.assignment_service.persistence.repository;

import de.unistuttgart.iste.meitrex.template.persistence.entity.TemplateEntity;
import de.unistuttgart.iste.meitrex.assignment_service.persistence.entity.TemplateEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* For more information, see <a href=https://docs.spring.io/spring-data/data-commons/docs/1.6.1.RELEASE/reference/html/repositories.html>this tutorial</a>
* or <a href=https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories>the official documentation</a>.
*/
package de.unistuttgart.iste.meitrex.template.persistence.repository;
package de.unistuttgart.iste.meitrex.assignment_service.persistence.repository;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package de.unistuttgart.iste.meitrex.template.service;
package de.unistuttgart.iste.meitrex.assignment_service.service;

import de.unistuttgart.iste.meitrex.generated.dto.Template;
import de.unistuttgart.iste.meitrex.template.persistence.entity.TemplateEntity;
import de.unistuttgart.iste.meitrex.template.persistence.mapper.TemplateMapper;
import de.unistuttgart.iste.meitrex.template.persistence.repository.TemplateRepository;
import de.unistuttgart.iste.meitrex.assignment_service.persistence.entity.TemplateEntity;
import de.unistuttgart.iste.meitrex.assignment_service.persistence.mapper.TemplateMapper;
import de.unistuttgart.iste.meitrex.assignment_service.persistence.repository.TemplateRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* The service classes implement the actual business logic. This usually includes the interaction with the
* repositories and the mapping of the entities to DTOs.
*/
package de.unistuttgart.iste.meitrex.template.service;
package de.unistuttgart.iste.meitrex.assignment_service.service;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.unistuttgart.iste.meitrex.template.validation;
package de.unistuttgart.iste.meitrex.assignment_service.validation;

import de.unistuttgart.iste.meitrex.generated.dto.Template;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* Put class level validation logic in this package.
*/
package de.unistuttgart.iste.meitrex.template.validation;
package de.unistuttgart.iste.meitrex.assignment_service.validation;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.unistuttgart.iste.meitrex.template;
package de.unistuttgart.iste.meitrex.assignment_service;

import org.springframework.boot.test.context.SpringBootTest;

Expand Down

0 comments on commit 01c5517

Please sign in to comment.