Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="tr.com.naryaz.crm.tablo">
<class name="AcentaTab" table="ACENTA_TAB">
<id name="acTIty" column="AC_T_ITY" length="5">
<generator class="assigned"/>
</id>
<property name="frGrup" column="FR_GRUP" length="3"/>
<property name="acTKd" column="AC_T_KD"/>
<property name="acTKom" column="AC_T_KOM"/>
<property name="acTShr" column="AC_T_SHR" length="20"/>
<property name="acTBol" column="AC_T_BOL" length="3"/>
<property name="acTAcik" column="AC_T_ACIK" length="13"/>
<property name="acTNo" column="AC_T_NO" length="3"/>
<property name="acTSube" column="AC_T_SUBE" length="2"/>
<property name="frKod" column="FR_KOD"/>
<property name="acTSorumlu" column="AC_T_SORUMLU" length="30"/>
<property name="adNo" column="AD_NO"/>
<property name="acTAir" column="AC_T_AIR"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
the error says that "INDEX_NAME column not found in this ResultSet", but it in Turkish. How can I solve this problem?
org.hibernate.exception.SQLGrammarException: could not get table metadata: ACENTA_TAB
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:59)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(DatabaseMetadata.java:94)
at org.hibernate.cfg.Configuration.generateSchemaUpdateScript(Configuration.java:744)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:135)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:265)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
at tr.com.naryaz.genel.persistence.hibernate.HibernateSessionFactory.<cl
init>(HibernateSessionFactory.java:39)
at tr.com.naryaz.genel.ApplicationLifecycleListener.contextInitialized(ApplicationLifecycleListener.java:16)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: org.postgresql.util.PSQLException: Bu ResultSet iinde INDEX_NAME s³tun ad² bulunamad².
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.findColumn(AbstractJdbc2R
esultSet.java:2364)
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getString(AbstractJdbc2ResultSet.java:2186)
at org.hibernate.tool.hbm2ddl.TableMetadata.addIndex(TableMetadata.java:79)
at org.hibernate.tool.hbm2ddl.TableMetadata.initIndexes(TableMetadata.java:160)
at org.hibernate.tool.hbm2ddl.TableMetadata.<init>(TableMetadata.java:35)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(DatabaseMetadata.java:79)
... 31 more
Name and version of the database you are using: PostgreSQL 8.1
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html