Package com.avaje.tests.model.basic

Examples of com.avaje.tests.model.basic.Article.addSection()


  @Test
  public void test() {

    Section s0 = new Section("some content");
    Article a0 = new Article("art1", "auth1");
    a0.addSection(s0);

    Ebean.save(a0);

    Article ar1 = Ebean.find(Article.class).setReadOnly(true).setId(a0.getId()).findUnique();
View Full Code Here


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);
  }
View Full Code Here

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.