Skip to content

Changes for Hibernate Reactive #9264

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

Closed
wants to merge 8 commits into from
Closed

Conversation

DavideD
Copy link
Member

@DavideD DavideD commented Nov 15, 2024

Fix HHH-18854 (I think)

These changes make it possible for me to use Hibernate Reactive with ORM 7 and Postgres.
I still need to fix some issues with the other databases, but I don't think I will have more changes to include for now.

Basically, I needed some way to intercept the creation of the id generator.

Copy link
Member

@gavinking gavinking left a comment

Choose a reason for hiding this comment

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

@DavideD Could you please add comments to every new method and constructor explaining that it's used by Reactive.

@DavideD
Copy link
Member Author

DavideD commented Nov 18, 2024

Comments added

@gavinking
Copy link
Member

Comments added

Thanks man

@DavideD
Copy link
Member Author

DavideD commented Nov 19, 2024

Rebased to the latest changes and added a minor refactoring: f0b8dca

@DavideD
Copy link
Member Author

DavideD commented Nov 20, 2024

Added another small refactoring: 25790c2

@DavideD DavideD force-pushed the HHH-18854-HR-3 branch 2 times, most recently from 511a321 to dae0877 Compare November 26, 2024 10:40
@DavideD
Copy link
Member Author

DavideD commented Nov 26, 2024

@sebersole Is it OK to merge this before the next release? (After I've applied the change Gavin asked)

@DavideD
Copy link
Member Author

DavideD commented Nov 26, 2024

@gavinking Is this better? 7be8d0b

@gavinking
Copy link
Member

@gavinking Is this better? 7be8d0b

Um, well, it's less code, so ... I guess??

Hibernate Reactive extends this class and needs to access/overrides some
of the methods.
Hibernate Reactive needs to replace or extends the original
id generators.

This changes make it possible to pass a function to the EntityMetamodel
that allows Hibernate Reactive to replace the original id generators
With this change I can remove a lot of duplicate code in Hibernate
Reactive.
refactoring

Allow me to remove some duplicated code in Hibernate Reactive
Change the parameter to JdbcType so that Hibernate Reactive
can call it when in need to create the array.
Because I didn't add a comment, some of the methods Hibernate Reactive
uses to plug in its classess, have been removed as a refactoring.
And move the `createEntityMetamodel` method in
`RuntimeModelCreationContext`
@sebersole
Copy link
Member

@sebersole Is it OK to merge this before the next release? (After I've applied the change Gavin asked)

Looks fine to me, I'll get it applied today.

@sebersole
Copy link
Member

We need to figure out this failure first though

@sebersole
Copy link
Member

#9329

@sebersole sebersole closed this Nov 26, 2024
@DavideD
Copy link
Member Author

DavideD commented Nov 27, 2024

Thanks!

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.

3 participants