-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-19737 - Support Envers with StatelessSession #10753
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
@@ -29,7 +29,7 @@ | |||
handlePostUpsert( event.getEntity(), event.getSession() ); | |||
} | |||
|
|||
private void handlePostUpsert(Object entity, EventSource source) { | |||
private void handlePostUpsert(Object entity, SharedSessionContractImplementor source) { |
Check notice
Code scanning / CodeQL
Useless parameter
@@ -29,7 +29,7 @@ | |||
handlePostUpsert( event.getEntity(), event.getSession() ); | |||
} | |||
|
|||
private void handlePostUpsert(Object entity, EventSource source) { | |||
private void handlePostUpsert(Object entity, SharedSessionContractImplementor source) { |
Check notice
Code scanning / CodeQL
Useless parameter
revisionInfoGenerator.saveRevisionData( session, revisionData ); | ||
} | ||
} | ||
else if ( session instanceof StatelessSessionImplementor statelessSession ) { |
Check notice
Code scanning / CodeQL
Unread local variable
@@ -34,7 +33,7 @@ | |||
* @param currentRevisionData Revision log entity. | |||
* @param vwu Performed work unit. | |||
*/ | |||
public void entityChanged(Session session, Object currentRevisionData, AuditWorkUnit vwu) { | |||
public void entityChanged(SharedSessionContractImplementor session, Object currentRevisionData, AuditWorkUnit vwu) { |
Check notice
Code scanning / CodeQL
Useless parameter
# Conflicts: # hibernate-core/src/main/java/org/hibernate/engine/spi/AbstractDelegatingSharedSessionBuilder.java # hibernate-core/src/main/java/org/hibernate/event/internal/DefaultLockEventListener.java # hibernate-core/src/main/java/org/hibernate/internal/StatelessSessionImpl.java # Conflicts: # hibernate-core/src/main/java/org/hibernate/cache/internal/CollectionCacheInvalidator.java
@Override | ||
SharedStatelessSessionBuilder noInterceptor(); | ||
|
||
SharedStatelessSessionBuilder statementInspector(UnaryOperator<String> operator); |
Check notice
Code scanning / CodeQL
Missing Override annotation
SessionBuilderImplementor tenantIdentifier(String tenantIdentifier); | ||
|
||
@Override | ||
SessionBuilderImplementor tenantIdentifier(Object tenantIdentifier); |
Check notice
Code scanning / CodeQL
Confusing overloading of methods
656262d
to
db819d5
Compare
Invesigate proper support for certain events (
AbstractDatabaseOperationEvent
and friends) fromStatelessSession
.hibernate/hibernate-reactive#394
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.
https://hibernate.atlassian.net/browse/HHH-19737