Refactored sample data generation into its own package.

This commit is contained in:
Andrew Lalis 2019-04-16 09:22:14 +02:00 committed by andrewlalis
parent 433702f437
commit 5aa2f1a215
10 changed files with 12 additions and 9 deletions

View File

@ -4,7 +4,7 @@ import nl.andrewlalis.teaching_assistant_assistant.model.Course;
import nl.andrewlalis.teaching_assistant_assistant.model.repositories.CourseRepository; import nl.andrewlalis.teaching_assistant_assistant.model.repositories.CourseRepository;
import nl.andrewlalis.teaching_assistant_assistant.model.repositories.PersonRepository; import nl.andrewlalis.teaching_assistant_assistant.model.repositories.PersonRepository;
import nl.andrewlalis.teaching_assistant_assistant.model.repositories.TeamRepository; import nl.andrewlalis.teaching_assistant_assistant.model.repositories.TeamRepository;
import nl.andrewlalis.teaching_assistant_assistant.util.CourseGenerator; import nl.andrewlalis.teaching_assistant_assistant.util.sample_data.CourseGenerator;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import nl.andrewlalis.teaching_assistant_assistant.model.Course; import nl.andrewlalis.teaching_assistant_assistant.model.Course;
import nl.andrewlalis.teaching_assistant_assistant.model.people.Student; import nl.andrewlalis.teaching_assistant_assistant.model.people.Student;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import nl.andrewlalis.teaching_assistant_assistant.model.people.Person; import nl.andrewlalis.teaching_assistant_assistant.model.people.Person;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import nl.andrewlalis.teaching_assistant_assistant.model.people.Student; import nl.andrewlalis.teaching_assistant_assistant.model.people.Student;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import nl.andrewlalis.teaching_assistant_assistant.model.people.Student; import nl.andrewlalis.teaching_assistant_assistant.model.people.Student;
import nl.andrewlalis.teaching_assistant_assistant.model.people.teams.StudentTeam; import nl.andrewlalis.teaching_assistant_assistant.model.people.teams.StudentTeam;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import nl.andrewlalis.teaching_assistant_assistant.model.people.TeachingAssistant; import nl.andrewlalis.teaching_assistant_assistant.model.people.TeachingAssistant;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import nl.andrewlalis.teaching_assistant_assistant.model.people.TeachingAssistant; import nl.andrewlalis.teaching_assistant_assistant.model.people.TeachingAssistant;
import nl.andrewlalis.teaching_assistant_assistant.model.people.teams.TeachingAssistantTeam; import nl.andrewlalis.teaching_assistant_assistant.model.people.teams.TeachingAssistantTeam;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import nl.andrewlalis.teaching_assistant_assistant.model.people.Person; import nl.andrewlalis.teaching_assistant_assistant.model.people.Person;
import nl.andrewlalis.teaching_assistant_assistant.model.people.teams.Team; import nl.andrewlalis.teaching_assistant_assistant.model.people.teams.Team;

View File

@ -1,4 +1,4 @@
package nl.andrewlalis.teaching_assistant_assistant.util; package nl.andrewlalis.teaching_assistant_assistant.util.sample_data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -5,3 +5,6 @@ spring.jpa.hibernate.ddl-auto=create
#spring.jpa.properties.hibernate.use_sql_comments=true #spring.jpa.properties.hibernate.use_sql_comments=true
#spring.jpa.properties.hibernate.format_sql=true #spring.jpa.properties.hibernate.format_sql=true
#spring.jpa.properties.hibernate.type=trace #spring.jpa.properties.hibernate.type=trace
spring.security.user.name=tester
spring.security.user.password=tester