Hi there,
Im just trying out a sample application on Hibernates with Sybase database it was throwing me with this error
Code:
[11/2/09 7:30:57:312 EST] 00000021 Dialect I org.hibernate.dialect.Dialect <init> Using dialect: org.hibernate.dialect.SybaseAnywhereDialect
[11/2/09 7:30:57:328 EST] 00000021 SystemErr R java.lang.AbstractMethodError: java/sql/DatabaseMetaData.supportsGetGeneratedKeys()Z
[11/2/09 7:30:57:343 EST] 00000021 SystemErr R at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:123)
[11/2/09 7:30:57:343 EST] 00000021 SystemErr R at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
[11/2/09 7:30:57:343 EST] 00000021 SystemErr R at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
[11/2/09 7:30:57:343 EST] 00000021 SystemErr R at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
My configuration file is this
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">
com.sybase.jdbc2.jdbc.SybDriver
</property>
<property name="hibernate.connection.url">
jdbc:sybase:Tds:servername:6306/mspg
</property>
<property name="hibernate.connection.username">
user1
</property>
<property name="hibernate.connection.password">
password1
</property>
<property name="hibernate.connection.pool_size">5</property>
<property name="show_sql">true</property>
<property name="dialect">
org.hibernate.dialect.SybaseAnywhereDialect
</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.HashtableCacheProvider
</property>
<property name="connection.autocommit">true</property>
<property name="format_sql">true</property>
<property name="use_sql_comments">true</property>
<property name="hibernate.bytecode.use_reflection_optimizer">
true
</property>
<!-- Mapping files -->
<mapping resource="./mappings/UserDetailsEO.xml" />
</session-factory>
</hibernate-configuration>
any help in resolving thsi issue with working example is greatly appricated.
Many Thanks