Skip to content

Comments

Jakarta Data#3321

Merged
dstepanov merged 6 commits into4.13.xfrom
jakartadata
Jun 17, 2025
Merged

Jakarta Data#3321
dstepanov merged 6 commits into4.13.xfrom
jakartadata

Conversation

@dstepanov
Copy link
Contributor

No description provided.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
57.4% Coverage on New Code (required ≥ 70%)
51 New Critical Issues (required ≤ 0)
2 New Blocker Issues (required ≤ 0)
5 New Bugs (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@dstepanov dstepanov force-pushed the jakartadata branch 2 times, most recently from f5a87f7 to d4d9533 Compare March 31, 2025 14:45
@dstepanov dstepanov force-pushed the jakartadata branch 2 times, most recently from 374c649 to f1cb09a Compare May 26, 2025 12:15
@sdelamo sdelamo moved this to In Progress in 4.9.0 Release Jun 16, 2025
@sdelamo
Copy link
Contributor

sdelamo commented Jun 16, 2025

@dstepanov target 4.13.x?

@dstepanov
Copy link
Contributor Author

Yes, going to work on it

@dstepanov dstepanov changed the base branch from 4.12.x to 4.13.x June 17, 2025 11:10
@dstepanov dstepanov requested a review from radovanradic June 17, 2025 11:10
@dstepanov dstepanov requested a review from sdelamo June 17, 2025 11:10
@dstepanov dstepanov requested a review from graemerocher June 17, 2025 11:11
@dstepanov dstepanov marked this pull request as ready for review June 17, 2025 11:11
@Internal
@Singleton
@Requires(classes = OptimisticLockingFailureException.class)
final class HibernateJakartaDataDeleteExceptionConverter implements JakartaDataDeleteExceptionConverter {
Copy link
Contributor

Choose a reason for hiding this comment

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

does it make sense to move these converters into a registrar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's different kind of converter

int size = getSize();
return size == 0 ? 1 : (int) Math.ceil((double) getTotalSize() / (double) size);
long totalSize = getTotalSize();
if (totalSize == -1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should document this breaking change somewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted, looks like it's not needed

*/
@NonNull
@JsonIgnore
default Limit getLimit() {
Copy link
Contributor

Choose a reason for hiding this comment

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

make sure to test serialization and deserialisation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is tested

/**
* Execute tests with a Persistence specific entity with a repository that requires read and writes (AKA not read-only)
*/
@Property(name = "jpa.default.properties.hibernate.show_sql", value = "true")
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this property have effect since this is jdbc module? It's just a bit confusing to me.
Also, would it be possible to have jakarta_data tests for other dialects as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I copy-pasted it. I don't think we need to test other dialect variations

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
55.1% Coverage on New Code (required ≥ 70%)
6 New Bugs (required ≤ 0)
64 New Critical Issues (required ≤ 0)
2 New Blocker Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@dstepanov dstepanov merged commit ba04296 into 4.13.x Jun 17, 2025
55 of 56 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in 4.9.0 Release Jun 17, 2025
@dstepanov dstepanov deleted the jakartadata branch June 17, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants