Announcement Announcement Module
No announcement yet.
"Bootstrap" functionality? (sample/seed data) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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 so I'm guessing that I might be out of luck in the short term.

    Any advice greatly appreciated.


  • #2

    See this thread, in particular post 18 by Ben.


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