Package com.avaje.tests.query.other

Source Code of com.avaje.tests.query.other.TestFindIdsWithInheritance

package com.avaje.tests.query.other;

import java.util.List;

import org.junit.Assert;
import org.junit.Test;

import com.avaje.ebean.BaseTestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.Truck;
import com.avaje.tests.model.basic.Vehicle;

public class TestFindIdsWithInheritance extends BaseTestCase {

  @Test
  public void testQuery() {
   
    Truck truck = new Truck();
    truck.setLicenseNumber("TK123");
   
    Ebean.save(truck);
   
    List<Object> ids = Ebean.find(Vehicle.class).findIds();
   
    Assert.assertNotNull(ids);
   
    Ebean.delete(truck);
   
  }
 
}
TOP

Related Classes of com.avaje.tests.query.other.TestFindIdsWithInheritance

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.