Skip to content

Commit

Permalink
solve backreference error
Browse files Browse the repository at this point in the history
carron10 committed Jun 20, 2024
1 parent eaaa1b8 commit dc7d7fe
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## TicketBookingSystem 🏟️
A user-friendly online ticket booking system for stadium events built with SpringBoot.

To view the website visit [here.](https://bfticketbookingsystem.azurewebsites.net/)
---

## 💻 Installation
Binary file modified TicketSystemDB_dev.mv.db
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/com/ticket/TicketSystem/entities/Game.java
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ public class Game {


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

/**
2 changes: 1 addition & 1 deletion src/main/java/com/ticket/TicketSystem/entities/Ticket.java
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ public class Ticket {
private String description;

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

//The type of ticket

0 comments on commit dc7d7fe

Please sign in to comment.