Deleting @ManyToMany parent entity without affecting child on Hibernate

Oh Dear!! It’s a nightmare getting MySQLIntegrityConstraintViolationException when you’re designing complex relational database structure for your app. Most of the time hibernate won’t complain with your approximation but this won’t work when it comes to bidirectional relations. Let me show an example. But first consider a scenario that we’re making a movie database application. We have two entities Movie.java and…

Read More