Some changes
This commit is contained in:
3
src/main/java/META-INF/MANIFEST.MF
Normal file
3
src/main/java/META-INF/MANIFEST.MF
Normal file
@@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: me.aski.prepactrlws.PrepactrlwsApplication
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user