See this stackoverflow post: [https://stackoverflow.com/questions/74893962/hibernate-6-jpa-how-to-update-smallint-column-with-fixed-value|https://stackoverflow.com/questions/74893962/hibernate-6-jpa-how-to-update-smallint-column-with-fixed-value|smart-link]
The HQL typechecked typechecker doesn’t allow an integer literal to be assigned to a field of type {{short}}.
I’m not sure if we really want to be this fussy here, but if we do we should add short (and byte??) literals to HQL.
It’s probably better to just relax the typechecking. |
|