GeoNewb Question

88 views
Skip to first unread message

Matt MacKenzie

unread,
May 10, 2012, 2:10:03 PM5/10/12
to ne...@googlegroups.com
Hi,

I'm using spring-data-neo4j in a project, and decided today that I needed to attach a point to various entities.  So, I added –spatial to my pom, and tried to add this in an entity:

    @Indexed(type = POINT, indexName = "VenueLocation") String wkt;

The problem is that "POINT" is undefined.  Am I somehow missing libs?  The dependency is present, I have the "gis" package available to me.


Matt MacKenzie
CEO, Uberity Technology Corporation

Michael Hunger

unread,
May 10, 2012, 2:24:24 PM5/10/12
to ne...@googlegroups.com
Matt,

you use spring-data-neo4j, right? Which version?

IndexType.POINT should work, you probably just miss a static import.

Michael

Matt MacKenzie

unread,
May 10, 2012, 3:21:47 PM5/10/12
to ne...@googlegroups.com
Michael,

Thanks, I'll look at that then.  Yes, version 2.0.0.RELEASE.

Matt MacKenzie

Matt MacKenzie

unread,
May 10, 2012, 3:25:42 PM5/10/12
to ne...@googlegroups.com
Hmm… "The attribute type is undefined for the annotation type Indexed" (compile error).  The Indexed annotation is coming from org.springframework.data.neo4j.annotation.*…



Matt MacKenzie


From: Michael Hunger <michael...@neotechnology.com>
Reply-To: <ne...@googlegroups.com>
Date: Thu, 10 May 2012 20:24:24 +0200
To: <ne...@googlegroups.com>
Subject: Re: [Neo4j] GeoNewb Question

Michael Hunger

unread,
May 10, 2012, 3:49:19 PM5/10/12
to ne...@googlegroups.com
Oh, back then it was called indexType


any reason not to upgrade to a more current version? Like 2.1.0.RC1 ?

Thanks

Michael

Matt MacKenzie

unread,
May 11, 2012, 9:01:49 AM5/11/12
to ne...@googlegroups.com
I am now on 2.1.0.RC1 with Neo4J 1.7, and the only thing that works is:

@Indexed(indexType = IndexType.POINT…)

Fine by me, but the docs say "type = POINT".

Thanks for the help!

-matt
Reply all
Reply to author
Forward
0 new messages