Announcement Announcement Module
Collapse
No announcement yet.
DataOnDemand doesn't like non-null self-references? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DataOnDemand doesn't like non-null self-references?

    When I run this script:

    Code:
    project --topLevelPackage foo
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    entity --class ~.Person --testAutomatically
    field reference --fieldName lastChangedBy --type ~.Person --notNull
    I get this error:

    Code:
    project --topLevelPackage foo
    Created G:\workspace-sts\asset-manager\pom.xml
    Created SRC_MAIN_JAVA
    Created SRC_MAIN_RESOURCES
    Created SRC_TEST_JAVA
    Created SRC_TEST_RESOURCES
    Created SRC_MAIN_WEBAPP
    Created SRC_MAIN_RESOURCES\META-INF\spring
    Created SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
    Created SRC_MAIN_RESOURCES\META-INF\spring\log4j.properties
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    Created SRC_MAIN_RESOURCES\META-INF\persistence.xml
    Created SRC_MAIN_RESOURCES\META-INF\spring\database.properties
    Managed SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
    Managed ROOT\pom.xml
    entity --class ~.Person --testAutomatically
    Created SRC_MAIN_JAVA\foo
    Created SRC_MAIN_JAVA\foo\Person.java
    Created SRC_TEST_JAVA\foo
    Created SRC_TEST_JAVA\foo\PersonDataOnDemand.java
    Created SRC_TEST_JAVA\foo\PersonIntegrationTest.java
    Created SRC_MAIN_JAVA\foo\Person_Roo_Entity.aj
    Created SRC_MAIN_JAVA\foo\Person_Roo_ToString.aj
    Created SRC_MAIN_JAVA\foo\Person_Roo_Configurable.aj
    Created SRC_TEST_JAVA\foo\PersonDataOnDemand_Roo_Configurable.aj
    Created SRC_TEST_JAVA\foo\PersonDataOnDemand_Roo_DataOnDemand.aj
    Created SRC_TEST_JAVA\foo\PersonIntegrationTest_Roo_Configurable.aj
    Created SRC_TEST_JAVA\foo\PersonIntegrationTest_Roo_IntegrationTest.aj
    field reference --fieldName lastChangedBy --type ~.Person --notNull
    Managed SRC_MAIN_JAVA\foo\Person.java
    Created SRC_MAIN_JAVA\foo\Person_Roo_JavaBean.aj
    Managed SRC_MAIN_JAVA\foo\Person_Roo_ToString.aj
    Undo manage SRC_MAIN_JAVA\foo\Person_Roo_ToString.aj
    Undo create SRC_MAIN_JAVA\foo\Person_Roo_JavaBean.aj
    Undo manage SRC_MAIN_JAVA\foo\Person.java
    Upstream dependency cannot be the same as the downstream dependency ('MID:org.springframework.roo.addon.dod.DataOnDemandMetadata#SRC_TEST_JAVA?foo.PersonDataOnDemand')
    Script execution aborted
    I've searched both JIRA and this forum, and can't find anything similar.

    If I remove either the --testAutomatically or the --notNull, the script works fine. Is this a bug?

  • #2
    This looks like something we should take a closer look at. Can you open a Jira ticket for this so we can fix it?

    -Stefan

    Comment


    • #3
      Done

      Logged as ROO-562. After your snappy effort with ROO-559, the stopwatch is running!

      Whoa - fixed already!
      Last edited by Andrew Swan; Jan 27th, 2010, 11:25 PM. Reason: Fixed!

      Comment


      • #4
        Originally posted by andrews View Post
        Logged as ROO-562. After your snappy effort with ROO-559, the stopwatch is running!

        Whoa - fixed already!
        What can I say, we enjoy quashing bugs. :-)

        Comment

        Working...
        X