-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
There was a problem hiding this 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.
0bcd408
to
dd782ca
Compare
Comments added |
Thanks man |
dd782ca
to
f0b8dca
Compare
Rebased to the latest changes and added a minor refactoring: f0b8dca |
f0b8dca
to
25790c2
Compare
Added another small refactoring: 25790c2 |
hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
Outdated
Show resolved
Hide resolved
511a321
to
dae0877
Compare
@sebersole Is it OK to merge this before the next release? (After I've applied the change Gavin asked) |
@gavinking Is this better? 7be8d0b |
Um, well, it's less code, so ... I guess?? |
hibernate-core/src/main/java/org/hibernate/metamodel/spi/RuntimeModelCreationContext.java
Outdated
Show resolved
Hide resolved
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`
7be8d0b
to
51f64ab
Compare
Looks fine to me, I'll get it applied today. |
We need to figure out this failure first though |
Thanks! |
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.