/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.jpa.qualified_persistent_test_module_name) %>;

public class <%= repository.jpa.persistent_test_module_name %>
  extends org.realityforge.guiceyloops.server.PersistenceTestModule
{
  public <%= repository.jpa.persistent_test_module_name %>( final boolean singleEntityManagerProject )
  {
    super( singleEntityManagerProject );
  }

  @java.lang.Override
  protected String getPersistenceUnitName()
  {
    return <%= repository.jpa.qualified_unit_descriptor_name %>.NAME;
  }

  protected void configure()
  {
    super.configure();
    final java.util.List<String> tables = new java.util.ArrayList<>();
<% repository.data_modules.each do |data_module| -%>
<% data_module.entities.select{|e| e.sql? && !e.sql.load_from_fixture? && !e.sql.sequence_table?}.each do |entity| -%>
    tables.add( "<%= entity.sql.qualified_table_name.gsub('"',"\\\"") %>" );
<% end -%>
<% end -%>
    java.util.Collections.reverse( tables );

    requestCleaningOfTables( tables.toArray( new String[ tables.size() ] ) );
  }
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.jpa.qualified_persistent_test_module_name) %>;

public class <%= repository.jpa.persistent_test_module_name %>
  extends org.realityforge.guiceyloops.server.PersistenceTestModule
{
  public <%= repository.jpa.persistent_test_module_name %>()
  {
    this( null );
  }

  public <%= repository.jpa.persistent_test_module_name %>( @javax.annotation.Nullable final String databasePrefix )
  {
<%
    tables = repository.data_modules.collect do |data_module|
      data_module.entities.select{|e| e.sql? && !e.sql.load_from_fixture? && !e.sql.sequence_table?}.collect do |entity|
        "\"#{entity.sql.qualified_table_name.gsub('"',"\\\"")}\""
      end
    end.reverse.join(", ")
-%>
    super( <%= repository.jpa.qualified_unit_descriptor_name %>.NAME, new String[] {<%= tables %>}, databasePrefix );
  }
}

Update to the latest guiceyloops and pass in required parameters via constructor
Update to the latest guiceyloops and pass in required parameters via constructor
