1

Merge branch 'event-db' of /home/christoph/Documents/repos/abschlussprojekt-it-bois with conflicts.

This commit is contained in:
Christoph
2020-03-09 16:12:17 +01:00
parent 23cff2c3d3
commit 0a9922b8fe
4 changed files with 17 additions and 7 deletions

View File

@ -53,7 +53,7 @@ public class SwaggerAPIControllerExample {
return "Product saved successfully";
}
/*@GetMapping("/json") //just for testing
@GetMapping("/json")
public void json() {
AddUserEvent aEvent = new AddUserEvent(
1,

View File

@ -1,7 +1,6 @@
package mops.gruppen2.repository;
import mops.gruppen2.domain.EventDTO;
import mops.gruppen2.domain.event.Event;
import org.springframework.data.repository.CrudRepository;
public interface EventRepository extends CrudRepository<EventDTO, Long> {

View File

@ -41,4 +41,10 @@ public class SerializationService {
}
}
public Event deserializeEvent(String json) throws JsonProcessingException {
ObjectMapper mapper = new ObjectMapper();
Event event = mapper.readValue(json, Event.class);
return event;
}
}