cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Lindesay <...@lindesay.co.nz>
Subject Re: CAY-1427 –– Problem with Refresh Join in EJBQL
Date Wed, 12 May 2010 09:45:45 GMT
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


Mime
View raw message