Hi, I want to connect to sybase IQ 15.2 from hibernate but am getting problems with the below config file is there anything wrong in my configuration,
------------------------------ -- Hibernate Config File ------------------------------
<hibernate-configuration> <session-factory> <property name="connection.url">jdbc:sybase:Tds:10.0.6.1:2639/chep</property> <property name="connection.driver_class">com.sybase.jdbc3.jdbc.SybDriver</property> <property name="connection.username">dbo</property> <property name="connection.password">dbo</property> <property name="connection.pool_size">10</property> <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> <property name="current_session_context_class">jta</property> <property name="hibernate.transaction.auto_close_session">true</property> <!-- The true value prints the SQL at console generated by Hibernate --> <property name="show_sql">true</property> <!-- This value specifies the dialect --> <property name="dialect">org.hibernate.dialect.SybaseDialect</property> <!-- This true value indicates to use second level cache --> <property name="hibernate.cache.use_second_level_cache">false</property>
<mapping resource="com/chep/ams/vo/cpg/OrganisationVO.hbm.xml" /> <mapping resource="com/chep/ams/vo/user/UserVO.hbm.xml" />
<!-- End of AMS HBM FILES--> </session-factory> </hibernate-configuration>
Thanks, Raghu
|