alialdev / projects

Projects
0 stars 1 forks source link

Setup a unidirectional relationship between genres & media items #4

Closed dvt32 closed 3 months ago

dvt32 commented 3 months ago

We don't need to have a bidirectional relationship between genres and media items (movies, TV shows, etc). In other words, in Genre we don't need to have movies, tvShows, because we're not querying media items by genre (we're not doing "find all movies by genre" operations, for example).

You may also look into @JsonIgnore. See more info here:

ali-al-fntext commented 3 months ago

I have deleted bidirectional relationships and problem is solved. No need for @JsonIgnore at the moment