Test and fix for BUG 420.

This commit is contained in:
Christian Romming
2013-08-28 23:06:37 +02:00
parent f71eac5f1e
commit 1cafea20c6
4 changed files with 81 additions and 1 deletions
@@ -0,0 +1,21 @@
package com.avaje.tests.basic;
import junit.framework.TestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.Article;
import com.avaje.tests.model.basic.Section;
public class TestDeleteCascadingOneToMany extends TestCase {
public void testDeleteCascadingOneToMany() {
Section s0 = new Section("some content");
Article a0 = new Article("art1","auth1");
a0.addSection(s0);
Ebean.save(a0);
Ebean.delete(a0);
}
}