Skip to content

Identifier generator fix #1608

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 4 commits into from
Apr 23, 2023
Merged

Identifier generator fix #1608

merged 4 commits into from
Apr 23, 2023

Conversation

Sanne
Copy link
Member

@Sanne Sanne commented Apr 23, 2023

This fixes a couple of very tricky bugs with Id generation by our optimisers.

Fixes #1595
Fixes #1587

@Sanne Sanne force-pushed the IdentifierGeneratorFix branch from 7cbef3a to 60865ee Compare April 23, 2023 17:34
Comment on lines +108 to +117
final ReactiveGeneratorWrapper identifierGenerator = (ReactiveGeneratorWrapper) hibernateSessionFactory.getIdentifierGenerator(
"org.hibernate.reactive.MultithreadedIdentityGenerationTest$EntityWithGeneratedId" );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [SessionFactoryImpl.getIdentifierGenerator](1) should be avoided because it has been deprecated.
@Sanne Sanne force-pushed the IdentifierGeneratorFix branch from 60865ee to b0ebe95 Compare April 23, 2023 20:09
@Sanne Sanne merged commit 74ebc6b into hibernate:main Apr 23, 2023
@Sanne Sanne deleted the IdentifierGeneratorFix branch April 23, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant