在 Cayenne 中使用现有的 SQLite 数据库

Using existing SQLite database in Cayenne

我一直在 IntelliJ 项目中使用 Apache Cayenne。 我像图像中那样在数据节点中配置 JDBC 但它给了我一个错误

我在我的 IntelliJ 项目文件夹中存储了 Cayenne 项目,还有 SQLite 数据库 "data.db"。

谁能帮我解决这个问题?

您需要告诉 CayenneModeler GUI 在哪里可以找到 SQLite jar。要在 Windows 上执行此操作,请转至工具 > 首选项 > ClassPath 并添加到 SQLLite jar 的路径。

它适用于 cayenne 3.1.1 和

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

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