Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can I have multiple return from this method?

 
sahar sa
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want the select method to select some data from DB and then return it . but i dont know how can I return multiple or a row of data ?
can you give me an idea how can i do it?

here is the code which i used for my select query:


thnx,
Sahar.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to go through your ResultSet and assign its values to a Collection of objects.

(And you've probably already noticed, but that is a delete statement, not a select query)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic