Skip to content

Conversation

jrenaat
Copy link
Member

@jrenaat jrenaat commented Oct 9, 2025


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

@jrenaat jrenaat force-pushed the HHH-19846_removeJunit4 branch 3 times, most recently from 08beb10 to 4f3f96b Compare October 10, 2025 22:00
@jrenaat jrenaat force-pushed the HHH-19846_removeJunit4 branch 10 times, most recently from aa9d841 to 8465b17 Compare October 14, 2025 15:46
@jrenaat jrenaat force-pushed the HHH-19846_removeJunit4 branch from 0cda6aa to e804b21 Compare October 15, 2025 14:53
//tag::collections-collection-proxy-usage-example[]
Person person = entityManager.find(Person.class, 1L);
//Throws java.lang.ClassCastException: org.hibernate.collection.internal.PersistentBag cannot be cast to java.util.ArrayList
ArrayList<String> phones = (ArrayList<String>) person.getPhones();

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'ArrayList phones' is never read.
@jrenaat jrenaat force-pushed the HHH-19846_removeJunit4 branch from b744e85 to bf4e6b6 Compare October 15, 2025 20:29
….custom.basic/declaredtype/parameterized

Signed-off-by: Jan Schatteman <[email protected]>
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