PostGIS 查询和 Cayenne
我刚刚开始评估 Cayenne 与我的 PostGIS 数据库的使用。我发现 CayenneModeler 非常易于使用,可以为我的持久类生成代码。我认为使用 Expression.fromString("...") 可以让我使用 PostGIS 函数创建表达式,但我收到了 ExpressionParser 错误。经过进一步阅读,看起来我可能需要一个 PostGIS 数据库适配器。有谁知道是否存在可以免费下载的软件或解决此问题的方法?非常感谢。
I have just started evaluating the use of Cayenne for use with my PostGIS database. I found the CayenneModeler extremely easy to use in order to generate the code for my persistent classes. I thought that using the Expression.fromString("...") would allow me to make an Expression using the PostGIS functions, but I receive a ExpressionParser error. Upon further reading, it looks like I may need a PostGIS database adapter. Does anyone know of the existence of one that can be downloaded freely or a way to get around this? Thanks so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看源代码,这些是当前支持/交付的数据库适配器:
Cayenne 提供抽象和适配器提供商特定的翻译。所以是的,你需要它是对的。您可能希望扩展 PostgreSQL 适配器,因为 PostGIS 构建在 Postgres 上。
如果您了解 BNF,这里是 Expression 语言的正式语法解析器识别。
looking at source, these are currently supported/shipped db adapters:
Cayenne provides abstraction and adapters provider specific translation. So yes, you are right about needing it. You might want to extend PostgreSQL Adapter as PostGIS builds on Postgres.
If you know something about BNF, here is formal grammar of language that Expression parser recognizes.