Skip to content

Commit

Permalink
Change project structure and pom.xml, and group.id
Browse files Browse the repository at this point in the history
  • Loading branch information
ramueSVA committed Mar 20, 2024
1 parent 50e18a6 commit 02a800e
Show file tree
Hide file tree
Showing 285 changed files with 1,352 additions and 1,584 deletions.
31 changes: 0 additions & 31 deletions .circleci/README.md

This file was deleted.

238 changes: 0 additions & 238 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<modelVersion>4.0.0</modelVersion>

<groupId>de.vitagroup.num-portal</groupId>
<groupId>org.highmed.num-portal</groupId>
<artifactId>num-portal</artifactId>
<version>1.17.0</version>

Expand Down
6 changes: 0 additions & 6 deletions src/main/java/de/vitagroup/num/domain/model/Type.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package de.vitagroup.num;
package org.highmed;

import de.vitagroup.num.service.atna.AtnaProperties;


import org.highmed.service.atna.AtnaProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.vitagroup.num.attachment;
package org.highmed.attachment;

import de.vitagroup.num.attachment.domain.dto.AttachmentDto;
import de.vitagroup.num.attachment.domain.model.Attachment;
import org.highmed.attachment.domain.dto.AttachmentDto;
import org.highmed.attachment.domain.model.Attachment;

import java.util.List;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.vitagroup.num.attachment.domain.dto;
package org.highmed.attachment.domain.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.vitagroup.num.attachment.domain.dto;
package org.highmed.attachment.domain.dto;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.vitagroup.num.attachment.domain.model;
package org.highmed.attachment.domain.model;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package de.vitagroup.num.attachment.domain.repository;
package org.highmed.attachment.domain.repository;

import de.vitagroup.num.attachment.AttachmentRepository;
import de.vitagroup.num.attachment.domain.dto.AttachmentDto;
import de.vitagroup.num.attachment.domain.model.Attachment;
import lombok.AllArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.highmed.attachment.AttachmentRepository;
import org.highmed.attachment.domain.dto.AttachmentDto;
import org.highmed.attachment.domain.model.Attachment;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package de.vitagroup.num.attachment.domain.repository;
package org.highmed.attachment.domain.repository;

import de.vitagroup.num.attachment.domain.model.Attachment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
Expand All @@ -11,22 +10,22 @@
import java.util.Optional;

@Repository
public interface AttachmentRepositoryJpa extends JpaRepository<Attachment, Long> {
public interface AttachmentRepositoryJpa extends JpaRepository<org.highmed.attachment.domain.model.Attachment, Long> {

@Query("SELECT new Attachment (atc.id, atc.name, atc.description, atc.uploadDate, atc.reviewCounter) " +
"FROM Attachment atc ")
List<Attachment> getAttachments();
List<org.highmed.attachment.domain.model.Attachment> getAttachments();

@Modifying
@Query("UPDATE Attachment atch SET atch.reviewCounter = atch.reviewCounter + 1 WHERE atch.projectId = :projectId")
void updateReviewCounterByProjectId(@Param("projectId") Long projectId);

Optional<Attachment> findByIdAndProjectId(Long id, Long projectId);
Optional<org.highmed.attachment.domain.model.Attachment> findByIdAndProjectId(Long id, Long projectId);

@Query("SELECT new Attachment (atc.id, atc.name, atc.description, atc.uploadDate, atc.reviewCounter) " +
"FROM Attachment atc " +
"WHERE atc.projectId = :projectId")
List<Attachment> findAttachmentsByProjectId(@Param("projectId") Long projectId);
List<org.highmed.attachment.domain.model.Attachment> findAttachmentsByProjectId(@Param("projectId") Long projectId);

@Modifying
@Query("DELETE FROM Attachment atch WHERE atch.projectId = :projectId")
Expand Down
Loading

0 comments on commit 02a800e

Please sign in to comment.