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: org.hibernate.exception.SQLGrammarException
PostPosted: Tue Oct 30, 2007 5:44 am 
Newbie

Joined: Thu Jun 21, 2007 11:54 pm
Posts: 3
I have an application based on springs and hibernate, which is working fine with Mysql database. I am trying to change the database from mysql to postgres. The database porting has been successful and i have generted the hibernate files. Jboss configuration has also been modified w.r.t the newdatabase. When i start the jboss, i get the following error:

11:25:31,115 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 42703
11:25:31,115 ERROR [JDBCExceptionReporter] ERROR: column usersadapt0_.user_id do
es not exist

11:25:31,130 INFO [STDOUT] org.springframework.orm.hibernate3.HibernateJdbcExce
ption: JDBC exception on Hibernate data access; nested exception is org.hibernat
e.exception.SQLGrammarException: could not execute query
11:25:31,130 INFO [STDOUT] Caused by:
11:25:31,130 INFO [STDOUT] org.hibernate.exception.SQLGrammarException: could n
ot execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:65)

the above column exists in the database..but it is not able to recognize.

I have - postgres 8.3
Postgres driver PostgreSQL 7.4 JDBC3 with SSL (build 210)
The 8.3 driver is giving some error.


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.