-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add db migration script to remove unused tables - remove correlating entity classes and repositories
- Loading branch information
1 parent
07e875e
commit aea09fe
Showing
8 changed files
with
7 additions
and
99 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
src/main/java/de/numcodex/feasibility_gui_backend/terminology/MappingNotFoundException.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
...dex/feasibility_gui_backend/terminology/persistence/ContextualizedTermCodeRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
package de.numcodex.feasibility_gui_backend.terminology.persistence; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
|
||
import java.util.List; | ||
|
||
public interface ContextualizedTermCodeRepository extends JpaRepository<ContextualizedTermCode, Long> { | ||
|
||
@Query("select ct.contextTermcodeHash from CriteriaSet cs inner join ContextualizedTermCodeToCriteriaSet ctctcs on ctctcs.criteriaSetId = cs.id inner join ContextualizedTermCode ct on ctctcs.contextTermcodeHash = ct.contextTermcodeHash where ct.contextTermcodeHash in :contextTermCodeHashList and cs.url = :criteriaSetUrl") | ||
List<String> filterByCriteriaSetUrl(@Param("criteriaSetUrl") String criteriaSetUrl, | ||
@Param("contextTermCodeHashList") List<String> contextTermCodeHashList); | ||
} |
20 changes: 0 additions & 20 deletions
20
.../feasibility_gui_backend/terminology/persistence/ContextualizedTermCodeToCriteriaSet.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/de/numcodex/feasibility_gui_backend/terminology/persistence/CriteriaSet.java
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
src/main/java/de/numcodex/feasibility_gui_backend/terminology/persistence/Mapping.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...n/java/de/numcodex/feasibility_gui_backend/terminology/persistence/MappingRepository.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DROP INDEX idx_mapping_name_mapping; | ||
ALTER TABLE contextualized_termcode DROP CONSTRAINT mapping_id_fk; | ||
ALTER TABLE contextualized_termcode DROP COLUMN mapping_id; | ||
|
||
DROP TABLE mapping; | ||
DROP TABLE contextualized_termcode_to_criteria_set; | ||
DROP TABLE criteria_set; |