Package com.avaje.tests.basic

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

package com.avaje.tests.basic;

import org.junit.Test;

import com.avaje.ebean.BaseTestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.MNonUpdPropEntity;

public class TestNonUpdateProperty extends BaseTestCase {

  @Test
  public void test() {

    MNonUpdPropEntity e = new MNonUpdPropEntity();
    e.setName("name");
    e.setNote("note");

    Ebean.save(e);

    MNonUpdPropEntity e2 = Ebean.find(MNonUpdPropEntity.class, e.getId());

    e2.setName("mod");
    Ebean.update(e2);

  }
}
TOP

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

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.