alesj,
I was looking for something within the EJB3 spec. I take it then, it's not possible? Please not also, I need to map Boolean to Y/N/null not 1/0. These are legacy tables I'm working with.
Thanks,
Corey
alesj wrote:
Quote:
4.4.5. Query Language Substitution
You may define new Hibernate query tokens using hibernate.query.substitutions. For example:
hibernate.query.substitutions true=1, false=0
would cause the tokens true and false to be translated to integer literals in the generated SQL.
Set this in the H3 properties.
Then in the db you simply have the smallest integer type (byte?) and in your code normal boolean property.