Hello,
I have to use an old and big database in my application and it is best if i 
don't change anything like column names and stuff.
Problem is, someone named a column "4_a_prinzip". Now if hibernate queries that 
table i get the following error:

Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for 
JDBC][SQLServer]Line 1: Incorrect syntax near '.4'.

in order to make it work the column name would have to be surrounded by [] 
ie
 select * from foo where foo.[4_a_prinzip] = 1 

is there a way to tell jboss to do so?

thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936852#3936852

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936852


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to