Skip to content
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

HHH-1914 Fix merge support for unmodifiable collections #9601

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

beikov
Copy link
Contributor

@beikov beikov commented Jan 10, 2025

Additional fix on top of #9600


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-1914

result[i] = persister.getElementType().disassemble( bag.get( i ), getSession(), null );
int i = 0;
for ( E element : collection ) {
result[i++] = persister.getElementType().disassemble( element, getSession(), null );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
CollectionPersister.getElementType
should be avoided because it has been deprecated.

for ( int i = 0; i < size; i+=2 ) {
identifiers.put(
(i/2),
persister.getIdentifierType().assemble( array[i], getSession(), owner )
);
values.add( (E) persister.getElementType().assemble( array[i+1], getSession(), owner ) );
collection.add( (E) persister.getElementType().assemble( array[i+1], getSession(), owner ) );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
CollectionPersister.getElementType
should be avoided because it has been deprecated.
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.

1 participant