mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#716 - Remove createNamedQuery() and createQuery(Class<T> beanType, String query) ... use criteria API, query beans and RawSql
This commit is contained in:
@@ -80,22 +80,5 @@ public class TestJoinInheritance extends BaseTestCase {
|
||||
Ebean.save(trip);
|
||||
}
|
||||
|
||||
Ebean.beginTransaction();
|
||||
|
||||
Query<Trip> q = Ebean.createQuery(Trip.class, "join address join vehicleDriver ");
|
||||
|
||||
List<Trip> trips = q.findList();
|
||||
|
||||
Assert.assertTrue(trips.size() == nrDrivers);
|
||||
|
||||
for (Trip t:trips){
|
||||
Address a = t.getAddress();
|
||||
Assert.assertTrue(line1.equals(a.getLine1()));
|
||||
Assert.assertTrue(line2.equals(a.getLine2()));
|
||||
Assert.assertTrue(city.equals(a.getCity()));
|
||||
}
|
||||
|
||||
|
||||
Ebean.endTransaction();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user