Hi,
I know it shouldnt be very useful but I got quite the same problem with hibernate generated queries.
I use hibernate for a <one-to-many> relation and the generated SQL code, though it is perfectly correct (tried it against my mysql.user system table), sends me the same error
### part of a long stack trace ###
Hibernate: /* from MySQLUser where user='lg' and host='localhost' */ select mysqluser0_.host as host, mysqluser0_.user as user, mysqluser0_.pwd as pwd10_, mysqluser0_.sel as sel10_, mysqluser0_.del as del10_, mysqluser0_.ins as ins10_, mysqluser0_.upd as upd10_, mysqluser0_.cre as cre10_, mysqluser0_.tmp as tmp10_, mysqluser0_.rld as rld10_, mysqluser0_.Drp as Drp10_, mysqluser0_.Sup as Sup10_ from MySQLUser_mod mysqluser0_ where user='lg' and host='localhost'
24696 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: S0022
24696 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Column 'pwd10_' not found.
I'm quite lost with it, and if you ever get an answer I might be interested.
Sorry not to help :(
|