Re: CAY-1427 末 Problem with Refresh Join in EJBQL

From: Andrew Lindesay (ap..indesay.co.nz)
Date: Wed May 12 2010 - 09:45:45 UTC

  • Next message: Andrus Adamchik: "Re: CAY-1427 末 Problem with Refresh Join in EJBQL"

    Hello;

    > Possible. Yes you should be able to run tests against different DB's, running Maven build with -Dcayenne.test.connection=postgres (3.0) or -DcayenneTestConnection=postgres (3.1) per http://cayenne.apache.org/running-unit-tests.html

    I just had some time to try to resolve this, but am having trouble stopping it from using HSQLDB;

            mvn test \
            -Dcayenne.test.connection=postgres \
            -DcayenneJdbcUsername=apl \
            -DcayenneJdbcUrl=jdbc:postgresql://localhost/cayennetests \
            -DcayenneJdbcDrg.postgresql.Driver \
            -DcayenneAdapter=org.apache.cayenne.dba.postgres.PostgresAdapter

    ^^^ does that look approximately right for 3.0-STABLE?

    It seems to get the PG driver from the repository and then just uses...

    > INFO: test connection info: [org.apache.cayenne.conn.DataSourceInfo:
    > user name: sa
    > password: **********
    > driver: org.hsqldb.jdbcDriver
    > db adapter class: org.apache.cayenne.dba.hsqldb.HSQLDBAdapter
    > url: jdbc:hsqldb:mem:aname
    > min. connections: 1
    > max. connections: 1
    > ]

    ...anyway.

    cheers.

    ___
    Andrew Lindesay
    www.silvereye.co.nz



    This archive was generated by hypermail 2.0.0 : Wed May 12 2010 - 09:46:18 UTC