Luca Mozzo
Luca Mozzo

Reputation: 962

Using existing SQLite database in Cayenne

I've been playing around with Apache Cayenne in an IntelliJ project. I configure the JDBC in the datanode like in the image but it gives me an error the screen

I have the Cayenne project stored in my IntelliJ project folder, as well as the SQLite database "data.db".

Can anyone help me figuring out this?

Upvotes: 1

Views: 184

Answers (2)

Klajd Deda
Klajd Deda

Reputation: 375

It works with cayenne 3.1.1 and

    <dependency>
        <groupId>org.xerial</groupId>
        <artifactId>sqlite-jdbc</artifactId>
        <version>3.23.1</version>
    </dependency>

https://bitbucket.org/xerial/sqlite-jdbc/overview

Upvotes: 0

andrus_a
andrus_a

Reputation: 2563

You need to tell CayenneModeler GUI where to find SQLite jar. To do that on Windows, go to Tools > Preferences > ClassPath and add a path to your SQLLite jar.

Upvotes: 2

Related Questions