Skip to content

Commit dc7d7fe

Browse files
committed
solve backreference error
1 parent eaaa1b8 commit dc7d7fe

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## TicketBookingSystem 🏟️
22
A user-friendly online ticket booking system for stadium events built with SpringBoot.
3-
3+
To view the website visit [here.](https://bfticketbookingsystem.azurewebsites.net/)
44
---
55

66
## 💻 Installation

TicketSystemDB_dev.mv.db

-8 KB
Binary file not shown.

src/main/java/com/ticket/TicketSystem/entities/Game.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class Game {
5151

5252

5353
@OneToMany(mappedBy = "game", cascade = CascadeType.ALL, orphanRemoval = true)
54-
@JsonManagedReference
54+
@JsonManagedReference(value = "game-tickets")
5555
private List<GameTicket> tickets;
5656

5757
/**

src/main/java/com/ticket/TicketSystem/entities/Ticket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class Ticket {
3737
private String description;
3838

3939
@OneToMany(mappedBy = "ticket")
40-
@JsonManagedReference
40+
@JsonManagedReference(value = "game-tickets")
4141
private List<GameTicket> gameTickets;
4242

4343
//The type of ticket

0 commit comments

Comments
 (0)