The concept of SQL databases deleting rows that refer (via a foreign key) to a deleted row.
I have 2 tables: T1 and T2, they are existing tables with data. We have a one to many relationship between …
sql-server cascading-deletesI'm trying to make a simple example in order to learn how to delete a row from a parent table …
php doctrine-orm symfony cascading-deletesI am a little confused about the JPA 2.0 orphanRemoval attribute. I think I can see it is needed when I …
hibernate jpa cascade cascading-deletes orphan-removalI would like to delete rows which contain a foreign key, but when I try something like this: DELETE FROM …
sql postgresql foreign-keys cascading-deletesIn PostgreSQL 8 is it possible to add ON DELETE CASCADES to the both foreign keys in the following table without …
postgresql constraints cascade cascading-deletes postgresql-8.4Following the "Code First Modeling" section of the Pluralsight "Getting Started with Entity Framework 5" course by Julie Lerman, I created …
c# entity-framework ef-code-first entity-framework-5 cascading-deletesIt's possible to delete using join statements to qualify the set to be deleted, such as the following: DELETE J …
sql sql-server delete-row cascading-deletesWhat's the difference between @OneToMany(cascade=REMOVE, mappedBy="customer") public List<Order> getOrders() { ... } and @OneToMany(mappedBy="customer", orphanRemoval="…
java hibernate jpa cascading-deletes orphan-removalI have problem with deleting related rows in Entity Framework 4.1. I have tables with relations Book 1<--->* BookFormats …
c# entity-framework foreign-keys cascading-deletesI have the following code that usually works well: public void delete(T object) { EntityManager em = getPersistence().createEntityManager(); EntityTransaction et = …
hibernate jpa cascading-deletes