Some changes

This commit is contained in:
2018-12-26 15:07:43 +01:00
parent 9afee34f8f
commit 91d12ae6d4
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: me.aski.prepactrlws.PrepactrlwsApplication

View File

@@ -33,7 +33,7 @@ public class PrepactrlwsApplication implements CommandLineRunner {
}
@Override
public void run(String... args) throws Exception {
public void run(String... args) {
repositoryRestConfiguration.getProjectionConfiguration().addProjection(StudentProjection.class)
.addProjection(TrainingProjection.class);
@@ -42,7 +42,7 @@ public class PrepactrlwsApplication implements CommandLineRunner {
Training training3 = trainingRepository.save(new Training(null, "IONIC", 80, null));
studentRepository.save(new Student(null, "John", "DOE", new Date(), training1));
studentRepository.save(new Student(null, "Jane", "DOE", new Date(), training2));
studentRepository.save(new Student(null, "Jane", "JOE", new Date(), training2));
studentRepository.save(new Student(null, "Richard", "ROE", new Date(), training3));
}
}