-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Why do I get this Invalid column name error???
PostPosted: Tue Aug 03, 2004 7:01 am 
Beginner
Beginner

Joined: Wed Jul 21, 2004 7:48 am
Posts: 21
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 .


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.