@Test public void findSome() { LoadExampleData.load(); Product product = Product.byName("Computer"); List<Product> products = new QProduct() .name.istartsWith("c") .id.greaterThan(0) .sku.icontains("c") .findList(); products.size(); }
public static Product byName(String name) { return new QProduct() .name.equalTo(name) .findOne(); }
Product { public static Product byName(String name) { return new QProduct() .name.equalTo(name) .findOne(); } }
Product { public static Product byName(String name) { return new QProduct() .name.equalTo(name) .findOne(); } Product(String sku, String name); }
Product { public static Product byName(String name) { return new QProduct() .name.equalTo(name) .findOne(); } Product(String sku, String name); Long getId(); void setId(Long id); String getSku(); void setSku(String sku); String getName(); void setName(String name); static Product byName(String name); }
Product { public static Product byName(String name) { return new QProduct() .name.equalTo(name) .findOne(); } Product(String sku, String name); Long getId(); void setId(Long id); String getSku(); void setSku(String sku); String getName(); void setName(String name); static Product byName(String name); static final ProductFinder find; }