Results 1 to 3 of 3

Thread: "Bootstrap" functionality? (sample/seed data)

  1. #1

    Question "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. #2
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    668

    Lightbulb Solved

    See this thread, in particular post 18 by Ben.
    Andrew Swan
    "Now is the EJB of our discontent made glorious Spring"

  3. #3

    Default

    Quote Originally Posted by andrews View Post
    See this thread, in particular post 18 by Ben.
    Perfect. Thanks Andrew!

Posting Permissions

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