Lines 1237-1242
Link Here
|
1237 |
// Not work on the server. |
1237 |
// Not work on the server. |
1238 |
return; |
1238 |
return; |
1239 |
} |
1239 |
} |
|
|
1240 |
if (((Session) JUnitTestCase.getServerSession()).getPlatform().isDerby()) |
1241 |
{ |
1242 |
warning("The test simpleCaseInWhereTest is not supported on Derby, because Derby does not support simple CASE"); |
1243 |
return; |
1244 |
} |
1240 |
JpaEntityManager em = (JpaEntityManager) createEntityManager(); |
1245 |
JpaEntityManager em = (JpaEntityManager) createEntityManager(); |
1241 |
Expression exp = (new ExpressionBuilder()).get("firstName").equal("Bob"); |
1246 |
Expression exp = (new ExpressionBuilder()).get("firstName").equal("Bob"); |
1242 |
Employee emp = (Employee)em.getActiveSession().readAllObjects(Employee.class, exp).firstElement(); |
1247 |
Employee emp = (Employee)em.getActiveSession().readAllObjects(Employee.class, exp).firstElement(); |