Hi guys,
I use Hibernate 2.1.2
Some times I get this error when I run my app
net.sf.hibernate.JDBCException.<init>(JDBCException.java:38) -- Could not execute query
java.sql.SQLException: [BEA][SQLServer JDBC Driver][SQLServer]Invalid column name 'false'.
this comes where my query is like this--
query="from EgVo as egVo where egVo .booleanProperty=false";
Here egVo is Value object and booleanProperty is a property of type-boolean
The Hibernate query displayed on the console has the form
select egVo _.unit_test_result_id as unit_tes1_, labunittes0_.u,
egVo _.boolean_property='false'
instead of '0' it is taking 'false' in the hibernate query.
Once I rebuilt and deployed my app it went fine but some times its very annoying and it doesnt go. Plz help to solve this guys .
|