Andrea Boriero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiODE2N2EwMDgw...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16750?atlOrigin=eyJpIjoiODE2N2...
) HHH-16750 (
https://hibernate.atlassian.net/browse/HHH-16750?atlOrigin=eyJpIjoiODE2N2...
) ClassCastException when Entity with a collectionElement has an EmbeddableId reference a
class with just one field and Batch is enabled and (
https://hibernate.atlassian.net/browse/HHH-16750?atlOrigin=eyJpIjoiODE2N2...
)
Issue Type: Improvement Assignee: Unassigned Created: 05/Jun/2023 07:22 AM Priority: Major
Reporter: Andrea Boriero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Given
@Entity(name = "EntityA")
public static class EntityA {
@EmbeddedId
private EntityId id;
@ElementCollection
public Set<EmbeddableA> elementCollection = new HashSet<>();
}
@Embeddable
public static class EntityId implements Serializable {
private String id1;
}
throws `java.lang.ClassCastException: class
org.hibernate.metamodel.mapping.internal.EmbeddedForeignKeyDescriptor cannot be cast to
class org.hibernate.metamodel.mapping.internal.SimpleForeignKeyDescriptor`
when Batch is enabled.
(
https://hibernate.atlassian.net/browse/HHH-16750#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16750#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:4a1ccf9 )