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

Fix - Removal of unused fields on Pool and Gate Entities and addition of Delivery Service Qualifier #303

Conversation

alexsilva-CGI
Copy link
Contributor

@alexsilva-CGI alexsilva-CGI commented Jun 23, 2023


name: Removal of unused fields on Pool and Gate Entities and addition of Delivery Service Qualifier

Description

This PR removes unused and unnecessary columns in the Entities and Database from the Gate and Pool, and addition of Delivery Service Qualifier on the Alternative Postal Address of both Pool and Gate.

Related issues: fix #284 fix #281 fix #282 fix #283

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

  • DEPENDENCIES are up to date. Dash license tool. Committers can open IP issues for restricted libs.
  • Copyright and license header are present on all affected files

@alexsilva-CGI alexsilva-CGI force-pushed the fix/persistence_gate_pool_entity_changes branch from 5c3fc21 to 3c24d03 Compare June 23, 2023 10:44
@alexsilva-CGI alexsilva-CGI marked this pull request as ready for review June 23, 2023 10:44
Copy link
Contributor

@nicoprow nicoprow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some issues while testing

@@ -105,4 +66,7 @@ class AlternativePostalAddress(
*/
@Column(name = "alt_delivery_service_number")
val deliveryServiceNumber: String = "",

@Column(name = "alt_delivery_service_qualifier")
val deliveryServiceQualifier: String = "",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a new column added here, the existing business partners have NULL written in it. Since this entity expects a non null value it leads to an error. In general, if an entity field is not nullable, its column should be not nullable

@@ -98,4 +65,7 @@ class AlternativePostalAddress(
*/
@Column(name = "alt_delivery_service_number")
val deliveryServiceNumber: String = "",

@Column(name = "alt_delivery_service_qualifier")
val deliveryServiceQualifier: String = "",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a new column added here, the existing business partners have NULL written in it. Since this entity expects a non null value it leads to an error. In general, if an entity field is not nullable, its column should be not nullable

@nicoprow nicoprow merged commit 971769a into eclipse-tractusx:main Jun 26, 2023
@nicoprow nicoprow deleted the fix/persistence_gate_pool_entity_changes branch June 26, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants