-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Some fixes for JPA TCK failures #9988
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
FYI @gavinking, this reverts a part of what you have done in hibernate#8866 which causes JPA TCK test failure of ee.jakarta.tck.persistence.core.entityManager2.Client2.lockTransactionRequiredExceptionTest
|
|
||
| public NamedGraphCreatorJpa(NamedEntityGraph annotation, String jpaEntityName) { | ||
| this.name = NullnessHelper.coalesceSuppliedValues( annotation::name, () -> jpaEntityName ); | ||
| final String name = StringHelper.nullIfEmpty( annotation.name() ); |
Check notice
Code scanning / CodeQL
Possible confusion of local and field Note
NamedGraphCreatorJpa
name
| //noinspection unchecked | ||
| final EntityDomainType<T> entityDomainType = (EntityDomainType<T>) entityDomainNameResolver.apply( jpaEntityName ); | ||
| return GraphParsing.parse( entityDomainType, graphContext.attributeList(), entityNameResolver ); | ||
| final String name = this.name == null ? jpaEntityName : this.name; |
Check notice
Code scanning / CodeQL
Possible confusion of local and field Note
createEntityGraph
name
| //noinspection unchecked | ||
| final EntityDomainType<T> entityDomainType = (EntityDomainType<T>) entityDomainClassResolver.apply( (Class<T>) entityType ); | ||
| return GraphParsing.parse( entityDomainType, graphContext.attributeList(), entityNameResolver ); | ||
| final String name = this.name == null ? entityDomainType.getName() : this.name; |
Check notice
Code scanning / CodeQL
Possible confusion of local and field Note
createEntityGraph
name
|
|
||
| private void checkTransactionNeededForLock(LockMode lockMode) { | ||
| if ( !LockMode.PESSIMISTIC_READ.greaterThan( lockMode ) ) { | ||
| if ( lockMode.greaterThan( LockMode.READ ) ) { |
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.
Yep, thanks, good catch, @beikov.
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.