-
Hi I'm trying out the Quarkus Beta1 release on my application. In Quarkus 2 my class (as a PanacheEntity) has properties such as When querying I use the following query:
In Quarkus 3 Beta1 this is not working anymore. I get the following error:
or
But if I change the query to use the correct property name instead it's working fine.
Is this an expected behaviour in the future or a result of the beta or might I have been doing the wrong way from the beginning but Hibernate was forgiving? Disclaimer: my Hibernate knowledge is a bit of a novice… |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
/cc @DavideD (hibernate-reactive), @Sanne (hibernate-reactive), @gavinking (hibernate-reactive) |
Beta Was this translation helpful? Give feedback.
-
When you write HQL, you are supposed to refer to the object property name (and not the name of the column on the database). With ORM 5, it worked anyway, but the latest Hibernate Reactive is based on ORM 6.2 that's stricter. |
Beta Was this translation helpful? Give feedback.
-
I understand, thanks! I also had another query where I updated a timestamp which didn't work:
but that also failed now so with your explanation I had to do it like this:
|
Beta Was this translation helpful? Give feedback.
When you write HQL, you are supposed to refer to the object property name (and not the name of the column on the database).
With ORM 5, it worked anyway, but the latest Hibernate Reactive is based on ORM 6.2 that's stricter.