Hi, I made a hibernate-mapping of a view USER_COL_COMMENTS, here is the code:
<hibernate-mapping>
<class name="com.model.Comments" table="USER_COL_COMMENTS">
<composite-id>
<key-property name="tableName"/>
<key-property name="columnName"/>
</composite-id>
<property name="tableName" column="TABLE_NAME" generated="never" not-null="true" />
<property name="columnName" column="COLUMN_NAME" generated="never" not-null="true" />
<property name="comments" column="COMMENTS" generated="never" not-null="true" />
</class>
</hibernate-mapping>
and then I deployed it, error appears:
2008-06-18 11:42:34,929 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] - <could not complete schema update>
org.hibernate.exception.SQLGrammarException: could not get table metadata: USER_COL_COMMENTS
any idea ?
thx in advance for any help
manos
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html