1. Removing items from join table in hibernate when deleting entities stackoverflow.comI have 2 classes with @ManyToMany relationship first class: Clip second class: Location the main idea is that a clip can be available in several locations this is the clip class.
|
2. cascade delete -orphan Problem with JoinTable Annotation forum.hibernate.orgI have a big object graph with some association within some objects.I am facing problem with deletion. My annotation as below. @Entity @Table(name = "t_person") public final class Person { ..................... ...................... @OneToMany(fetch = FetchType.LAZY) @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @JoinTable(name = "t_per_cars", joinColumns = { @JoinColumn(name = "fk_to_person") }) @IndexColumn(name = "car_list_position", base = 1) private List |
3. JPA cascading delete for jointable only? forum.hibernate.orgHi, I have one entity A and another U. U references a collection of A through a join table: @OneToMany(fetch = FetchType.EAGER) @JoinTable(name="ua") private Set ua; When trying to delete an instance of A, I understandably get a constraint violation exception from the database, as this instance is referenced through the above relationship. Which would be the best way to automatically ... |
4. Unexplained delete on jointable during add forum.hibernate.orgPage 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message waltc Post subject: Unexplained delete on jointable during add Posted: Thu Apr 14, 2011 8:31 am Newbie Joined: Thu Nov 05, 2009 11:31 am Posts: 8 I am using Hibernate as the JPA provider in a ... |
5. Depth of cascade for delete on a external jointable forum.hibernate.org |