Results 1 to 2 of 2

Thread: Error during entity compile "findActivityType(Long) is undefined"

  1. #1

    Question Error during entity compile "findActivityType(Long) is undefined"

    Hi all,

    here is something odd and reproducable on my system. When

    Code:
    // Spring Roo 1.1.5.RELEASE [rev d3a68c3] log opened at 2012-02-02 17:32:36
    project --topLevelPackage com.acme.test 
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    entity --class ~.domain.types.ActivityType
    field string --fieldName ActivityType --notNull
    exit
    // Spring Roo 1.1.5.RELEASE [rev d3a68c3] log closed at 2012-02-02 17:35:11
    is executed.

    Code:
      > mvn clean eclipse:clean eclipse:eclipse
    gives me:

    Code:
    ...
    [INFO] --- aspectj-maven-plugin:1.2:compile (default) @ test ---
    [ERROR] The method findActivityType(Long) is undefined for the type String
    ...
    [ERROR] error at ActivityType attached = ActivityType.findActivityType(this.id);
    [ERROR] ^^^
    [ERROR] /tmp/testactivity/src/main/java/com/acme/test/domain/types/ActivityType_Roo_Entity.aj:64:0::0 The method findActivityType(Long) is undefined for the type String
    [ERROR] -> [Help 1]
    The same happens in STS 2.8.1.

    Should I open a bug?

    Thanks for your advice
    Carsten

  2. #2

    Default

    I have tried roo 1.2 and get the same error, when performing
    Code:
     mvn clean eclipse:clean eclipse:eclipse
    Last edited by carsten.steckel; Feb 2nd, 2012 at 11:38 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •