Package com.avaje.tests.compositekeys

Source Code of com.avaje.tests.compositekeys.TestCaoCompositeKeyWithAnnotationOverrides

package com.avaje.tests.compositekeys;

import org.junit.Test;

import com.avaje.ebean.BaseTestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.compositekeys.db.CaoBean;
import com.avaje.tests.compositekeys.db.CaoKey;

public class TestCaoCompositeKeyWithAnnotationOverrides extends BaseTestCase {

  @Test
  public void test() {
   
    CaoKey key = new CaoKey();
    key.setCustomer(123);
    key.setType(1);
   
    CaoBean bean = new CaoBean();
    bean.setKey(key);
    bean.setDescription("some desc");

    Ebean.save(bean);
  }
 
}
TOP

Related Classes of com.avaje.tests.compositekeys.TestCaoCompositeKeyWithAnnotationOverrides

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.