gvNIX`finder Geo all`命令未找到" geo field"

时间:2016-01-13 13:07:40

标签: spring-roo gvnix

我正在尝试在this tutorial

之后创建基于地图的应用程序

我有一个PostgreSQL / PostGIS数据库,其中有一个名为outlet的表,我通过SQL添加了一个名为location_gps的POINT列:

SELECT AddGeometryColumn('outlet','location_gps','4210','POINT',2);。这会产生outlet表,如下所示:

image of outlet table

对数据库进行逆向工程以获得Spring Roo应用程序,为我提供Outlet_Roo_DbManaged.aj字段:

Snippet of code

此字段的类型为String。因此,当我运行gvNIX命令finder geo all时,我收到消息

The entity specified, Outlet doesn't have geo fields. Use "field geo" command to add new geo fields on current entity.

我如何克服这个问题?

亲切的问候, Ť

1 个答案:

答案 0 :(得分:1)

逆向工程插件不支持几何列(因为它是原始的Spring Roo插件)。因此,您应该插入此属性并修改其定义以支持几何列。

另外,请记住执行gvNIX geo add-on的setup-commands以在项目中包含所需的依赖项。

祝你好运!