コード例 #1
0
 public void testWhereWithSpecialNamesWithValues() {
   QueryBuilder<SpecialNamesEntity> queryBuilder = dao.queryBuilder();
   queryBuilder.where(Properties.Avg.eq("test"));
   queryBuilder.where(Properties.Count.notIn("test", "test2"));
   queryBuilder.where(Properties.Distinct.ge("test"));
   queryBuilder.where(Properties.Index.le("test"));
   queryBuilder.where(Properties.Join.like("test"));
   queryBuilder.where(Properties.On.notEq("test"));
   queryBuilder.where(Properties.Select.in("test", "test2"));
   queryBuilder.where(Properties.Sum.lt(1));
   queryBuilder.where(Properties.Order.gt(1));
   queryBuilder.list();
   queryBuilder.buildCount().count();
   queryBuilder.buildDelete().executeDeleteWithoutDetachingEntities();
 }
コード例 #2
0
 public void testWhereWithSpecialNames() {
   QueryBuilder<SpecialNamesEntity> queryBuilder = dao.queryBuilder();
   queryBuilder.where(Properties.Avg.isNotNull());
   queryBuilder.where(Properties.Count.isNotNull());
   queryBuilder.where(Properties.Distinct.isNotNull());
   queryBuilder.where(Properties.Index.isNotNull());
   queryBuilder.where(Properties.Join.isNotNull());
   queryBuilder.where(Properties.On.isNotNull());
   queryBuilder.where(Properties.Select.isNotNull());
   queryBuilder.where(Properties.Sum.isNotNull());
   queryBuilder.where(Properties.Order.isNotNull());
   queryBuilder.list();
   queryBuilder.buildCount().count();
   queryBuilder.buildDelete().executeDeleteWithoutDetachingEntities();
 }