Re: FindBy question

2007-09-20 Thread Scott Gray
Use the % wildcard List m = findByLike("Product", UtilMisc.toMap("productId", "GZ%"); or you can use findByAnd with a list of expressions, there are plenty of examples in the code to work from. Regards Scott On 21/09/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can anyone tell me if a

FindBy question

2007-09-20 Thread [EMAIL PROTECTED]
Can anyone tell me if any of the findBy methods using primary keys will return matching records when only the first N bytes match? For example, we have lots of GZ- in the demo Product table. Are there any findBy methods that will return all if I do something like List m = findByxxx("Product"