Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: How to update fields/relationships/entities afterwards

  1. #11
    Join Date
    Oct 2005
    Location
    Amsterdam
    Posts
    123

    Default

    Quote Originally Posted by Jabberz View Post
    If I read between the lines, I think there is a feature request in here --

    Roo command history per project, that can be dumped and sent back for bug reports
    RC4 already creates a log.roo...

    The weird thing is that it does not seem to be working when the roo shell is used from within STS.
    Hans Westerbeek
    Software Engineer

  2. #12
    Join Date
    Oct 2005
    Location
    Amsterdam
    Posts
    123

    Default

    Quote Originally Posted by Stefan Schmidt View Post

    However, I would also need to know what steps you have taken outside the roo shell (changed java files (Serializable, etc)) and in which exact sequence you have taken these steps (ie. first I ran the attached script, then I added two fields in the Entities Java source, which should have updated the view artifacts). Also, it would be good to know if the Roo shell indicated any problems (ie errors, rollbacks etc). You can also run Roo shell in 'development mode' which will actually give you stack traces, etc.

    Cheers,
    Stefan
    Hi,

    This might take a while

    I have been issueing quite a few commands in the roo shell from within STS, and like i said, they did not get appended to log.roo.

    I also messed around with the project in other ways quite a bit (modified pom.xml, added webflow.version and spring security.version properties), so there can be many things causing this. I will try to get it replayable, but there's a few things i need to secure before that

    Thanks a bunch for your help so far.
    Hans Westerbeek
    Software Engineer

  3. #13
    Join Date
    Oct 2005
    Location
    Amsterdam
    Posts
    123

    Default found workaround

    I completely deleted both the scaffolded controller, its views and the domain class, then regenerated both with roo.
    Hans Westerbeek
    Software Engineer

  4. #14
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    STS 2.3.0 offers Roo command history recording. It is implemented by STS code as opposed to the normal Roo shell code. If it's not working with STS 2.3.0 would you please log a bug report and steps to reproduce at https://issuetracker.springsource.com/browse/STS. Thanks!
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  5. #15
    Join Date
    Oct 2005
    Location
    Amsterdam
    Posts
    123

    Default issue created

    Hans Westerbeek
    Software Engineer

  6. #16
    Join Date
    Jan 2010
    Posts
    5

    Default Regenerating an entity's aspectj?

    Is there a way to force Roo to regenerate my entity's aspects? In this case I just want to trigger the same generation that had occurred originally when I did "entity --class ...".

    Though I have a Roo shell open while editing my entity's .java file, the generated code appears to be out of sync and this is why I am wondering if there is a "regenerate all decorations" trick.

  7. #17
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Every time you start Roo it does an in-memory computation of what every ITD should have inside it, compares this with what is on disk, and if necessary updates the disk. You don't need to do anything special for this to happen. Just reload Roo and it will therefore do the equivalent of a "clean rebuild" for you.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  8. #18
    Join Date
    Jan 2010
    Posts
    5

    Default My enviroment must have been hosed

    OK, that's how I thought it should work. For some reason my Roo environment wasn't updating the ITDs, but I cannot reproduce it so for now I'll file this in the "probably will never know why" department. In the end I went with the nuclear option and restored from backup to a previous working state. The backup feature of Roo = win.

    Thanks for the quick response,
    -elliott

  9. #19
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Quote Originally Posted by elliottc View Post
    The backup feature of Roo = win
    Yeah, it's funny how such a small feature is so useful. :-)
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

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