many to many - jpa deleting manytomany links -


I have a table of events and I want to group them, it's easy easy

 / / This cascade group still removes the joining table, but type the product table @ManyToMany (targetEntity = Product.class, fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType., Redress. (Name = "Lcw_group_product", joinColumns = {@JoinColumn (name = "group_id", referenced column name = "id")}, inverseJoinColumns = {@JoinColumn (name = "product_id", referenced column name = "id")}) @ElementForeignKey (updateAction = ForeignKeyAction.CASCADE) Public A set of getProducts () {return product;} 

These annotations work when I want to completely remove the group, but when I want to update the group to remove some links, then Apart from the incidents, I can not find any way to do this, I am currently doing the deleted details of the link table but it is not reflected in the parent unit

Just to clarify Areas that ElementForeignKey a OpenJPA annotations, not a JPA one. Unfortunately, so far there are not many orphan removals for many comments.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -