I’m building my first web application using JavaEE. I’m using Netbeans 7 and Maven. I’ve noticed that every time I make a change to my program it drops and re-creates the database. I want a way to populate the database with dummy data.
I tried using unit tests but that generated issues with the embedded.EBJContainer (errr.. something) and three days later I’m looking for another solution to my problem.
How should I provide dummy data for the database during development?
Is there a place in maven where I can specify a sql script to run where I can place insertion data?
I recommend you to take a look at DBUnit for database related testing. You can specify your initial data set in XML and it offers Maven integration too.