Package com.avaje.tests.basic

Source Code of com.avaje.tests.basic.TestDeleteCascadingOneToMany

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);
  }

}
TOP

Related Classes of com.avaje.tests.basic.TestDeleteCascadingOneToMany

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.