title: How to load initial data (or seed data) using Java JPA?
body: <p>I have a JPA project and I would like to insert some initial data just on development, so I can check if everything is running smoothly easy.</p>
  
  <p>My research lead me to find only solution with direct SQL script, but that isn't right. If I'm using a framework to abstract database details why would I create script for an specific database?</p>
  
  <p>In the ruby on rails world we have the command "rake db:seed" that simple executes a file named seed.rb that has the function to add the initial data on the database calling the abstraction layer. Is there something like that on java?</p>
  
  <p>The ideal solution I can think of would be to execute a maven goal that would execute a java class, is there an easy way or a maven plugin to do it?</p>