Skip to content

HHH-19119: Reproduction of not found bug for entity graph #473

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petergphillips
Copy link

No description provided.

@@ -10,7 +10,7 @@
<properties>
<version.com.h2database>2.3.232</version.com.h2database>
<version.junit-jupiter>5.11.3</version.junit-jupiter>
<version.org.hibernate.orm>6.6.3.Final</version.org.hibernate.orm>
<version.org.hibernate.orm>6.6.6.Final</version.org.hibernate.orm>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to demonstrate it fails on latest version

entityManager.createNativeQuery("insert into ITEM_WITH_IGNORE(ITEM_ID,ITEM_TYPE) values(12345, 'BOB')").executeUpdate();

final var graph = entityManager.getEntityGraph("ItemWithIgnore.fetch");
final var item = entityManager.find(ItemWithIgnore.class, 12345L, Collections.singletonMap("jakarta.persistence.fetchgraph", graph));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both tests fail here with

java.lang.AssertionError
	at org.hibernate.sql.results.graph.Initializer.getResolvedInstance(Initializer.java:67)
	at org.hibernate.sql.results.graph.embeddable.internal.EmbeddableAssembler.assemble(EmbeddableAssembler.java:40)

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