title: Pre-populating Entities into database for testing purposes
body: <p>I'm developing a Java EE 7 application. For testing purposes, it'd be very beneficial to populate the database with some content. <a href="https://docs.oracle.com/javaee/7/tutorial/doc/persistence-intro005.htm" rel="nofollow">This tutorial</a> explains how you can create the database content at or before run time using an SQL file. I'm assuming, within this SQL file, I could do something like this:</p>
  
  <pre><code>INSERT INTO ENTITYNAME(ENTITYATTRIBUTE1, ENTITYATTRIBUTE2, ... ENTITYATTRIBUTEN) value
      ("entityAttribute1", "entityAttribute2, ... "entityAttributeN")
  </code></pre>
  
  <p>If my approach is correct, how would I provide the value of an @ElementCollection, @OneToMany, or just Entity attribute? </p>