File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.withCriteria returns an array. Any way to get one object only?

 
liliya woland
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks in advance!
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would this help ?

 
liliya woland
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it still gave me two objects. Thank you for trying though.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check what objects were returned ? Their id ?
 
liliya woland
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! I DID get the right result - one object per call! That worked! Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic