Announcement Announcement Module
Collapse
No announcement yet.
[neo4j] Cannot resolve relateTo method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [neo4j] Cannot resolve relateTo method

    I have a few of my own projects where the relateTo method is not being resolved correctly. To confirm that is was not my own project I downloaded the spring-data-neo4j-samples (git://github.com/SpringSource/spring-data-neo4j.git) and I'm having the same problem. The myrestaurants-social UserAccount node entity is one specific example. I've also tried this in both intellij and eclipse, so am I missing any maven dependencies or something? I'm sure its something simple.

    Here are my mvn dependencies:
    Code:
    <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.1</version>
          <scope>test</scope>
        </dependency>
          <dependency>
              <groupId>org.springframework.data</groupId>
              <artifactId>spring-data-neo4j</artifactId>
              <version>2.1.0.RC3</version>
          </dependency>
          <dependency>
              <groupId>junit</groupId>
              <artifactId>junit</artifactId>
              <version>4.9</version>
          </dependency>
          <dependency>
              <groupId>org.springframework</groupId>
              <artifactId>spring-test</artifactId>
              <version>3.2.0.M1</version>
          </dependency>
          <dependency>
              <groupId>org.springframework</groupId>
              <artifactId>spring-webmvc</artifactId>
              <version>3.1.2.RELEASE</version>
          </dependency>
          <dependency>
              <groupId>org.springframework.data</groupId>
              <artifactId>spring-data-neo4j</artifactId>
              <version>2.1.0.RC3</version>
          </dependency>
      </dependencies>

  • #2
    I also tested this on another machine and had the same results. Any thoughts?

    Comment


    • #3
      Just wanted to update that I was able to resolve this issue by following this archived forum post

      http://forum.springsource.org/archiv...t-114627.html?

      In particular, I used the following suggestion:
      Import -> Maven -> Existing Maven Maven Project and imported the SDG HelloWorld project, there were no editor errors at all.

      Please make sure that Project Properties -> AspectJ Build -> Aspect Path should contain two entries, first spring-aspects from the springframework and the spring-data-neo4j jars.

      Comment

      Working...
      X