Hello,
It's the first time I'm using Hibernate, and I'm enjoying using it, everything was working at the moment. Now I'm trying to define check constraints.
I'm writing my column check constraint like this: <column name="avaluacio" check="avaluacio >= 0 AND avaluacio <= 10" />
But when I run my app and the mappings are ridden I get this error: "The value of attribute "check" associated with an element type "null" must not contain the '<' character."
But I really need the '<' character to express "less than" in my sql expression.
It think maybe I have to define the sql expression in another tag and call it from the ckeck tag but i don't know how to do it. And I don't find out how to do it in the Internet.
Enlight me, please.
Thank you.
|