Login  Register

FindBy question

Posted by SkipDever on Sep 21, 2007; 6:40am
URL: http://ofbiz.116.s1.nabble.com/POS-Setup-tp148376p148394.html

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-xxxx in the demo Product table.  Are there
any findBy methods that will return all if I do something like

List m = findByxxx("Product", UtilMisc.toMap("productId", "GZ");

I expect findByLike will do it, but I didnt want to do a "like" search where
I might bet back "AmGZ123" and similiar.  I want to get back only records
starting with GZ.

I can dig through the source, but I was hoping some of the more experienced
folks could save me the trouble as I can't find documentation on it.

Skip