We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the chars "fk" in a package name where entities are located all queries will give:
Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test.test.entity.Test WHERE id= ?1]
I've tested most versions from 3.0.0.Final to 3.3.2.
Same issue when using FK in class name.
The issue occured when updating from Quarkus 2 to 3.
Entity with populated data or null
Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test..entity.FooEntity]
Create a package structure with fk in: org.fk.test..entity;
Create an entity
@Entity public class FooEntity extends PanacheEntity { private String test; }
Create a test:
@Test @TestTransaction void findAll() { assertDoesNotThrow(() -> FooEntity.findAll().firstResult()); }
Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test..entity.FooEntity] org.opentest4j.AssertionFailedError: Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test..entity.FooEntity]
uname -a
ver
No response
java -version
17
3.3.2
mvnw --version
gradlew --version
gradlew 8.3
The text was updated successfully, but these errors were encountered:
/cc @FroMage (panache), @loicmathieu (panache)
Sorry, something went wrong.
Hey, thanks for reporting this. In this case, probably both ORM (https://hibernate.atlassian.net/browse/HHH-17823) and Panache could've been more forgiving to "keywords" in the package name 😃
Successfully merging a pull request may close this issue.
Describe the bug
When using the chars "fk" in a package name where entities are located all queries will give:
Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test.test.entity.Test WHERE id= ?1]
I've tested most versions from 3.0.0.Final to 3.3.2.
Same issue when using FK in class name.
The issue occured when updating from Quarkus 2 to 3.
Expected behavior
Entity with populated data or null
Actual behavior
Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test..entity.FooEntity]
How to Reproduce?
Create a package structure with fk in:
org.fk.test..entity;
Create an entity
@Entity public class FooEntity extends PanacheEntity { private String test; }
Create a test:
Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test..entity.FooEntity]
org.opentest4j.AssertionFailedError: Unexpected exception thrown: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: A query exception occurred [FROM org.fk.test..entity.FooEntity]
Output of
uname -a
orver
No response
Output of
java -version
17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.3.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradlew 8.3
Additional information
No response
The text was updated successfully, but these errors were encountered: