Announcement Announcement Module
Collapse
No announcement yet.
"Bootstrap" functionality? (sample/seed data) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Bootstrap" functionality? (sample/seed data)

    I'm fairly new to Spring Roo. I've most recently been working with Grails and was wondering if there is equivalent functionality in Spring/Roo to Grails' BootStrap.groovy (allows you to run random code on application startup). I'm porting over an app from Grails to Roo and I was using BootStrap.groovy to load sample data which is used during development to manually test the interface. I'm currently running a SQL script to load the sample data whenever I rebuild/restart the app but that's getting to be a PITA.

    I've seen the data on demand functionality but that looks like it is intended solely for automated integration testing. I also saw this thread http://forum.springsource.org/showthread.php?t=89664 so I'm guessing that I might be out of luck in the short term.

    Any advice greatly appreciated.

    Gary

  • #2
    Solved

    See this thread, in particular post 18 by Ben.

    Comment


    • #3
      Originally posted by andrews View Post
      See this thread, in particular post 18 by Ben.
      Perfect. Thanks Andrew!

      Comment

      Working...
      X