Skip to content

Conversation

@jimsimon-wk
Copy link
Contributor

@jimsimon-wk jimsimon-wk commented Jan 4, 2025

Reproducer for https://hibernate.atlassian.net/browse/HHH-19017

This is not a fix, just a reproducer for an issue I encountered after upgrading to Hibernate 6.6 (from 6.5). I originally thought that the issue was confined to @OneToOne(FetchType.LAZY) but this test also fails for FetchType.EAGER. I believe the preconditions to reproduce this are

  1. @OneToOne property on a model
  2. @JoinColumn to a unique key (other than @Id)
  3. @EntityGraph being applied

This test should reproduce a ClassCastException that's thrown here.

Related Change:

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jan 4, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [8928c6d]

› This message was automatically generated.

@jimsimon-wk
Copy link
Contributor Author

@yrodiere Are reproducing tests reviewed by the Hibernate Team before an HHH- ticket gets made?

@yrodiere
Copy link
Member

yrodiere commented Jan 6, 2025

@yrodiere Are reproducing tests reviewed by the Hibernate Team before an HHH- ticket gets made?

Hey. No, people reporting issues generally create the Jira ticket, with a link to the reproducer :)

@jimsimon-wk
Copy link
Contributor Author

@yrodiere Are reproducing tests reviewed by the Hibernate Team before an HHH- ticket gets made?

Hey. No, people reporting issues generally create the Jira ticket, with a link to the reproducer :)

My apologies! I didn't realize I could (and had to) create an account to create a ticket in the project.

@jimsimon-wk jimsimon-wk changed the title Reproduce Class Cast Exception for PersistentAttributeInterceptable HHH-19017: Reproduce Class Cast Exception for PersistentAttributeInterceptable Jan 6, 2025
@beikov
Copy link
Member

beikov commented Jan 20, 2025

Superseded by #9605

@beikov beikov closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants