title: How to initialize one-to-many relationship in spring-data-jpa in data.sql initialization
body: <p>I have a spring-dta-jpa application.  Before running some JUnit tests, I want to populate the embedded H2 database.  I know that this can be done by putting a data.sql file into the resource folder of my maven project as described in the spring doc. </p>
  
  <p><a href="http://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html" rel="nofollow noreferrer">http://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html</a></p>
  
  <p>My question is:  How do I initialize parent child ("one-to-many") relationships in that data.sql file?  I do not know the IDs of the parent when I like to insert the child entities.</p>