Re: tests against other databases

From: Aristedes Maniatis (ar..aniatis.org)
Date: Tue Nov 10 2009 - 20:53:30 EST

  • Next message: Dirk Olmes: "Re: [suggestion] unmodifiable toMany lists"

    On 10/11/09 11:24 PM, Ольга Ткачева wrote:
    > in connection.properties
    >
    > derby.adapter = org.apache.cayenne.dba.derby.DerbyAdapter
    > derby.jdbc.username = username
    > derby.jdbc.password = password
    > derby.jdbc.url = jdbc:derby:path-to-hsql-db-files;create=true
    > derby.jdbc.driver = org.apache.derby.jdbc.EmbeddedDriver
    >
    > h2.cayenne.adapter = org.apache.cayenne.dba.h2.H2Adapter
    > h2.jdbc.username = username
    > h2.jdbc.password = password
    > h2.jdbc.url = jdbc:h2:mem:myTestMem;MVCC=TRUE
    > h2.jdbc.driver = org.h2.Driver

    Thanks Olga,

    I'd never have guessed some of the above. Are you saying that the file needs to look *exactly* like the above, including the string "path-to-hsql-db-files"?

    Is it possible that we could commit this file into svn somewhere so that maven/junit will find it automatically when running the tests? The docs on the web site say that it can only live in ~/.cayenne.

    Ari

    -- 
    

    --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A



    This archive was generated by hypermail 2.0.0 : Tue Nov 10 2009 - 20:54:10 EST