I'm using the Hibernate Criteria in order to build queries dynamically. One of these dynamic queries uses a column stored on MySQL as a varchar. But, is a column storing prices of items (only has numeric values with decimals). So I would like to generate queries using ge le or between.
Is there a way to tell to hibernate something like "hey, this column is of type varchar, but its content is numeric so apply my numeric restrictions (please)"?
Aucun commentaire:
Enregistrer un commentaire