You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When migration from Quarkus 3.13.3 to any quarkus 3.14.X version a classe cast expression occured when using @Embeddable/@EmbeddedId.
Expected behavior
No exception should be thrown.
Actual behavior
java.lang.ClassCastException: class org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl cannot be cast to class org.hibernate.reactive.sql.results.graph.ReactiveInitializer (org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl and org.hibernate.reactive.sql.results.graph.ReactiveInitializer are in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @10feca44)
at org.hibernate.reactive.sql.results.graph.entity.internal.ReactiveEntityInitializerImpl.initializeId(ReactiveEntityInitializerImpl.java:748)
at org.hibernate.reactive.sql.results.graph.entity.internal.ReactiveEntityInitializerImpl.reactiveResolveKey(ReactiveEntityInitializerImpl.java:625)
at org.hibernate.reactive.sql.results.graph.entity.internal.ReactiveEntityInitializerImpl.reactiveResolveKey(ReactiveEntityInitializerImpl.java:605)
at org.hibernate.reactive.sql.results.graph.entity.internal.ReactiveEntityInitializerImpl.reactiveResolveKey(ReactiveEntityInitializerImpl.java:56)
at org.hibernate.reactive.sql.results.internal.ReactiveStandardRowReader.resolveKey(ReactiveStandardRowReader.java:383)
at org.hibernate.reactive.sql.results.internal.ReactiveStandardRowReader.lambda$coordinateInitializers$28(ReactiveStandardRowReader.java:376)
How to Reproduce?
My code is simple.
class A extends PanacheEntityBase{
@EmbeddedId
B id;
}
@Embeddable
class B implements Serializable{
@Column(nullable=false)
String c1;
@Column(nullable=false)
String c2;
}
Http Route
return A.listAll();
Output of uname -a or ver
No response
Output of java -version
No response
Quarkus version or git rev
3.14.4
Build tool (ie. output of mvnw --version or gradlew --version)
mvn 3.9.5
Additional information
Work around: Use @IdClass
The text was updated successfully, but these errors were encountered:
Describe the bug
When migration from Quarkus 3.13.3 to any quarkus 3.14.X version a classe cast expression occured when using @Embeddable/@EmbeddedId.
Expected behavior
No exception should be thrown.
Actual behavior
How to Reproduce?
My code is simple.
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.14.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)mvn 3.9.5
Additional information
Work around: Use @IdClass
The text was updated successfully, but these errors were encountered: