Announcement Announcement Module
Collapse
No announcement yet.
Error during entity compile "findActivityType(Long) is undefined" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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, 12:38 PM.

    Comment

    Working...
    X