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

Feature: Hibernate Setup #62

Merged
merged 67 commits into from
Nov 30, 2023
Merged

Feature: Hibernate Setup #62

merged 67 commits into from
Nov 30, 2023

Conversation

lucas-phillips28
Copy link
Contributor

@lucas-phillips28 lucas-phillips28 commented Nov 23, 2023

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/S28-2157

Change description

  • Add lombok
  • Add hibernate
  • Add hibernate entities and repositories to match new db schema

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

lucas-phillips28 and others added 30 commits October 9, 2023 09:24
# Conflicts:
#	build.gradle
#	charts/pre-api/values.yaml
#	src/main/resources/application.yaml
@lucas-phillips28 lucas-phillips28 marked this pull request as ready for review November 30, 2023 13:37
@lucas-phillips28 lucas-phillips28 requested a review from a team as a code owner November 30, 2023 13:37
@lucas-phillips28 lucas-phillips28 changed the title Feature/hibernate setup Feature: Hibernate Setup Nov 30, 2023
@lucas-phillips28 lucas-phillips28 enabled auto-merge (squash) November 30, 2023 16:16
@lucas-phillips28 lucas-phillips28 merged commit 5c171a5 into master Nov 30, 2023
6 checks passed
@lucas-phillips28 lucas-phillips28 deleted the feature/hibernate-setup branch November 30, 2023 16:32
@lucas-phillips28 lucas-phillips28 mentioned this pull request Dec 6, 2023
LaurenceRawlings pushed a commit that referenced this pull request Feb 14, 2024
* Added hibernate, postgres, lombok and flyway. Set java version to 17.

* Updated Open API config

* Added local docker compose to generate local db

* Updated application.yaml with settings for hibernate and flyway

* Added placeholder code for variables needed from key vault

* Added SQL script to generate the database via flyway

* Updated values.yaml to get correct environment variables from key vault

* Fixed environment vars in docker-compose-local.yml

* Updated README with details for running local docker image

* Hibernate and rest controller for recording

* checkstyle fix

* Remove old code for old db + created enums for new db types

* Remove old db schema

* Fix Application.java re-added

* Add updated hibernate entities

* Add updated hibernate repositories

* Move id field out of each entity into base entity class

* Remove unused imports

* Remove setting fields to false

* Fix Class cannot have field of same name

* Add PMD suppressing on the enums

* Fix spacing

* Fix editInstruction column with type json

* Add tests for each of the entities and a helper class to generate entities

* Fix checkstyle and pmd

* Added hibernate, postgres, lombok and flyway. Set java version to 17.

* Updated Open API config

* Added local docker compose to generate local db

* Updated application.yaml with settings for hibernate and flyway

* Added placeholder code for variables needed from key vault

* Added SQL script to generate the database via flyway

* Fixed environment vars in docker-compose-local.yml

* Updated README with details for running local docker image

* Hibernate and rest controller for recording

* checkstyle fix

* removed duplicate flyway gradle tasks

* Bumping chart version/ fixing aliases

* Remove old code for old db

* Remove old code for old db

* Fix Enum types work correctly now

* Remove BookingParticipant entity and replaced with many to many

* Update entities to match new schema changes

* Update entities to match new schema changes (deleted -> deleted_at)

* Fix Tests for updated entities

* Styling

* Styling

* Update entities to match new schema changes (capture session, recording)

* Revert readme changes

* Update build.gradle

* Move schema file db.migrations -> db.migration

* Revert springboot version to fix enum errors

* Move tests to integration testing

* Remove timezone setting

* Add comment for downgraded spring plugin

* Add default test user to entity factory

* Capitalize enums in db and code

* Update column definition default

---------

Co-authored-by: Jason Paige <[email protected]>
Co-authored-by: hmcts-jenkins-cnp <60659747+hmcts-jenkins-cnp[bot]@users.noreply.github.com>
Co-authored-by: Jason Paige <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants