Announcement Announcement Module
Collapse
No announcement yet.
DBRE on Table that references itself we get StackOverflowError Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DBRE on Table that references itself we get StackOverflowError

    Generating and entity on self-referencing table/enity generates a StackOverflowError. Using this with MSSql Schema

    DDL:

    CREATE TABLE
    CCO
    (
    CCO_ID INT NOT NULL IDENTITY,
    DESC VARCHAR(20)
    CCO_PARENT_ID INT NOT NULL,
    CONSTRAINT CCO_ID PRIMARY KEY (CCO_ID),
    CONSTRAINT CCO_CCO_fk FOREIGN KEY (CCO_PARENT_ID) REFERENCES CCO (CCO_ID)
    )

    ....

    Roo Commands:

    roo> database reverse engineer --schema someschema --package ~.domain --includeTables "CCO"
    Created SRC_MAIN_RESOURCES/dbre.xml
    Updated ROOT/pom.xml
    Created SRC_MAIN_JAVA/com/knowledgeworks/wondercom/k1/model/domain/Cco.java
    Exception in thread "Spring Roo JLine Shell" java.lang.StackOverflowError
    at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:58)
    ...
    at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.recursiveAntMatch(PollingFile MonitorService.java:466)
    ...
    at
    org.springframework.roo.metadata.DefaultMetadataSe rvice.getInternal(DefaultMetadataService.java:147)


    Anyone knows how to solve this?
    Last edited by bantunes; Aug 8th, 2011, 03:20 PM.

  • #2
    Closing here as this is now logged as ROO-2629.

    Comment

    Working...
    X