mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
21 lines
435 B
Java
21 lines
435 B
Java
package org.tests.basic;
|
|
|
|
import io.ebean.Ebean;
|
|
import org.tests.model.basic.Article;
|
|
import org.tests.model.basic.Section;
|
|
import junit.framework.TestCase;
|
|
|
|
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);
|
|
}
|
|
|
|
}
|