[OS-JIRA] Created: (CAY-349) No way to specify JDBC Driver parameters

From: jira-norepl..bjectstyle.org
Date: Sun Aug 14 2005 - 23:27:35 EDT

  • Next message: jira-norepl..bjectstyle.org: "[OS-JIRA] Created: (CAY-350) Property List Serialization"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-349

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-349
        Summary: No way to specify JDBC Driver parameters
           Type: Improvement

         Status: Assigned
       Priority: Minor

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: yuichi sugimura

        Created: Sun, 14 Aug 2005 11:26 PM
        Updated: Sun, 14 Aug 2005 11:26 PM
    Environment: Firebird 1.5
    Jaybird JDBC Driver

    Description:
     There's no way to specify JDBC Driver parameters.

     In org.objectstyle.cayenne.conn.DriverDataSource,
    all we can pass to connect-properties is username and password.

     I want to pass arbitrary parameters to DriverDataSource level at least. Specifying in driver.xml (which is generated by modeler) is much better.

     Currently I personally patching DriverDataSource like this.

       if (password != null) {
         connectProperties.put("password", password);
       }
       connectProperties.put("lc_ctype", "UNICODE_FSS");
       connectProperties.put("isolation", "4");
       ....
       c = driver.connect(connectionUrl, connectProperties);

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Sun Aug 14 2005 - 23:27:37 EDT