Error with the orphanRemoval

Asked

Viewed 16 times

0

I’m trying to use orphanRemoval for the TCC project and I’m having trouble, I think it’s dependency.

 @ManyToMany(cascade = CascadeType.ALL, orphanRemoval = true)
 private List<ReadingTarget> readingTargets;

Erro

Dependencies:

inserir a descrição da imagem aqui

What could be wrong?

  • @Manytomany does not support orphanRemoval (see documentation https://docs.oracle.com/javaee/7/api/javax/persistence/ManyToMany.html). Would you really like to do a Manytomany-type mapping?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.