Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema normalization, model and service changes #84

Merged
merged 18 commits into from
Jun 13, 2023

Conversation

dabico
Copy link
Member

@dabico dabico commented May 29, 2023

Closes #82

Splits the old `repo_label` and `repo_language` tables from a
many-to-one, into a many-to-many, while introducing the `label` and
`language` tables.

Note for labels: we no longer make a distinction between upper- and
lower-case names, meaning that both `BUG`, `Bug` and `bug` are all
treated as the latter in the DB.
For now, this only applies to:
- `CrawlJob`
- `GitRepo`
- `SupportedLanguage`

But I will gradually add the same principle to other entities as well.
This also includes naming changes for the columns, as well as the
rewrite of `equals` and `hashCode`. The `GitRepo` entity now also
uses `@ManyToMany` instead of `@OneToMany`.
@dabico dabico force-pushed the enhancement/normalisation branch from bde5506 to 037fa87 Compare May 29, 2023 09:14
@dabico dabico force-pushed the enhancement/normalisation branch from 037fa87 to bee5013 Compare May 29, 2023 09:20
@dabico dabico changed the title Added schema normalization migration Schema normalization, model and service changes May 29, 2023
@dabico dabico linked an issue May 29, 2023 that may be closed by this pull request
Don't use the online editor worst mistake of my fucking life
…isation

# Conflicts:
#	src/main/java/usi/si/seart/model/Topic.java
@dabico dabico merged commit 84ae5bf into develop Jun 13, 2023
5 checks passed
@dabico dabico deleted the enhancement/normalisation branch June 13, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema Normalisation
1 participant