I'm getting this error in
Angular for my Spring Boot project.
JSON parse error: Already had POJO for id (java.lang.Long) [[ObjectId: key=5, type=com.fasterxml.jackson.databind.deser.impl.PropertyBasedObjectIdGenerator, scope=com.km.theatretix.entity.Venue]]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Already had POJO for id (java.lang.Long) [[ObjectId: key=5, type=com.fasterxml.jackson.databind.deser.impl.PropertyBasedObjectIdGenerator, scope=com.km.theatretix.entity.Venue]] (through reference chain: com.km.theatretix.entity.Ticket["theatreEvent"]->com.km.theatretix.entity.TheatreEvent["venue"]->com.km.theatretix.entity.Venue["id"])
However, it only happens on the first loop when I try to create a new ticket. Here is the Angular function.
Here is the
Java code for the entity where the error is happening.