用于在 Jasper Reports 中获取样本数据库 Grateful Dead 音乐会数据的 Orient 数据库查询

Orient db Query for getting Sample db Grateful Dead Concerts data in Jasper Reports

我是 OrientDB 和 Jasper 报告的新手。我已使用 jdbc 驱动程序

成功将 Jasper-soft studio 与 OrientDB 连接起来

但是当我在 Jasper 报告中查询示例 OrientDB Grateful Dead Concerts 时,returns 一些字段和它们的 class 类型是 com.orientechnologies.orient.core.record.impl.ODocument 但我无法读取这些字段'值并得到一个错误,它找不到这个 class。我想我没有写正确的查询。

如果有人能提供解决方案,那将是很大的帮助。谢谢

如果字段属于 class com.orientechnologies.orient.core.record.impl.ODocument,您需要这样声明它们

<field name="out" class="com.orientechnologies.orient.core.record.impl.ODocument"></field>

为了避免 "class not found" 你需要包含库 (.jar) 持有这个 class orientdb-core-2.2-SNAPSHOT.jar 和所有其他的 jar 是它正在引用(参见分布)。

要在 jaspersoft-studio

中包含一个 jar

Each report is supposed to be part of a project. The project has a classpath, and here is where you should add the jars you need.

To add jar open the projects view and right click the project folder with which you are working on. By default, new reports are created in the project My Reports.