Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.0
DB: Sybase 10
Mapping documents:
<hibernate-mapping default-lazy="false">
<class name="TestClass" table="TestTable" schema="DBA">
<id name="ID" type="long" unsaved-value="0">
<column name="ID" not-null="true"/>
<generator class="identity"/>
</id>
Tables are owned by DBA
The user which the application(running on weblogic) uses to connect to DB is a non-admin user say 'testuser'.
testuser has the privileges to 'insert,update,delete and select' on the tables
Problem:
The insertion of data into the table works fine,but when ever application is trying to update the data in the table it throws the following error.
Session.saveorupdate(object)
Caused by: org.hibernate.exception.SQLGrammarException: could not update: [TestClass#409472]
Caused by: java.sql.SQLException: [Sybase][ODBC Driver][Adaptive Server Anywhere]Table 'TestTable' not found
Any help in this regard is appreciated