.withCriteria returns an array. Any way to get one object only?
liliya woland
Ranch Hand
Joined: Apr 11, 2006
Posts: 115
posted
0
Hi everyone, I'm trying out .withCriteria calls and noticing that I'm getting back arrays. My call is this one:
And I know that this call will not return more then one object, and all I need is just that one object. Could anybody tell me if there is a way to do this to get just one object back?