Menu

Hibernate configuration

DM_Dad
2008-11-26
2012-08-15
  • DM_Dad

    DM_Dad - 2008-11-26

    Howdy,

    I'm trying to use the driver I've dl'd here to reverse engineer my hibernate config files. I'm connecting to a sql server 2000 db and have the following key-value pairs in my property file:
    hibernate.dialect = org.hibernate.dialect.SQLServerDialect
    hibernate.connection.driver_class = net.sourceforge.jtds.jdbc.Driver
    hibernate.connection.url = jdbc:sqlserver://192.168.11.10:1433;forwardReadOnlyMethod=serverCursor

    However when invoked Ant to run the hibernate tool I got the following output:
    [hibernatetool] org.hibernate.exception.JDBCConnectionException: Getting database metadata
    [hibernatetool] java.sql.SQLException: No suitable driver

    And before I'm asked, yes the driver is in my <project root>/lib dir which is in my classpath.

    Regards,

    DM_Dad

     
    • BruceS

      BruceS - 2008-11-27

      Hi,

      Your url is bad.

      See http://jtds.sourceforge.net/faq.html#urlFormat

      It should be: jdbc:jtds:sqlserver://192.168.11.10:1433

      PS: I don't think (for hibernate reverse engineering) you should need "forwardReadOnlyMethod=serverCursor"

      Regards,
      Bruce

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.