Menu

Derby support

Help
2005-02-17
2013-04-25
  • Neal Dewing

    Neal Dewing - 2005-02-17

    I am unable to generate classes using the Apache Derby driver. I am running JDK 1.5 and Derby with JDBC 3.0. I have the derby.jar included in the sql2java path.

    What should the configuration be for:

    - generatedkey.retrieve
    - generatedkey.statement

    JDBC properties:

    jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
    jdbc.url=jdbc:derby:/work/db/sql2java/
    jdbc.username=user
    jdbc.password=user
    jdbc.schema=SQL2JAVA

    Result of 'ant generate':
    -----------------------------------------------
    generate:
         [java] DATABASE: Apache Derby
         [java] Database::loadTables - %
         [java] Database::loadColumns
         [java] Database::loadPrimaryKeys
         [java] Database::loadImportedKeys
         [java] Database::loadManyToMany
         [java] Generating src/java/sql2java/sample/database/Manager.java
    -----------------------------------------------

    No classes are generated. Any ideas?

    Thanks,
    Neal

     
    • Alp Sehic

      Alp Sehic - 2005-02-17

      Hi,

      are you sure that the jdbc.url is correct ?...

      I think the connection pattern is like

      jdbc:derby:databaseName;URLAttributes

      ...

       
    • Neal Dewing

      Neal Dewing - 2005-02-17

      Hi Alp,

      I have double checked the url paramaters.

      This is what I replaced the url with:

      jdbc.url=jdbc:derby:/work/db/sql2java/;create=true

      - With no luck. Do you require more information?

       
    • Neal Dewing

      Neal Dewing - 2005-02-17

      Quick question:

      What pattern does Derby use to match all tables:

      [java] Database::loadTables - %

      Could this be the problem?

       

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.