Here is the latest code example used in our integration tests. Works
with any DB, including HSQLDB in-memory URL mentioned earlier:
Andrus
On Nov 2, 2006, at 12:50 PM, Mike Kienenberger wrote:
> You can take a look at the cayenne unit tests.
> These work (or at least used to work) using an in-memory hsqldb.
>
> Off the top of my head, I think it's only a matter of specifying
> "jdbc:hsqldb:mem:." as your jdbc.url in the
> .cayenne/connection.properties file in your home directory.
>
>
> On 11/2/06, Christian Mittendorf <christian.mittendor..reenet.de>
> wrote:
>> Hi!
>>
>> Can anybody give me hint on how to setup db tables using my
>> cayenne.xml from my class for running an in memory hsqldb? I'd like
>> to create some junit tests that use an in memory table instead of the
>> real db connection.
>>
>> Christian
>>
>>
>
This archive was generated by hypermail 2.0.0 : Thu Nov 02 2006 - 13:35:34 EST