Skip to content

Composite key with generated value not working properly #2303

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

Merged
merged 2 commits into from
Jun 13, 2025

Conversation

DavideD
Copy link
Member

@DavideD DavideD commented Jun 13, 2025

Fix #2154

Rebased #2296 after the upgrade to ORM 7.0.2.Final (that includes hibernate/hibernate-orm#10301)

I squashed together the commits related to the fix, added some assertions to the test, and applied some refactoring

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jun 13, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@DavideD DavideD changed the title Issue#2154 Composite key with generated value not working properly Jun 13, 2025
@@ -33,4 +34,8 @@
* @param session the reactive session
*/
CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object entity);

default CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object owner, Object currentValue, EventType eventType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'currentValue' is never used.
@@ -33,4 +34,8 @@
* @param session the reactive session
*/
CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object entity);

default CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object owner, Object currentValue, EventType eventType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'eventType' is never used.
@DavideD DavideD added the bug Something isn't working label Jun 13, 2025
@DavideD DavideD merged commit 585b0c9 into hibernate:main Jun 13, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Composite key with generated value not working properly
2 participants