Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to get List of Values Here i am getting Db table last values repeating  RSS feed

 
anji anjaiah
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All

In My DB i have below values
Table Name : Users
ID Name
1 allen
2 mark
3 collin

Here i am select all values




In My Service class




// Here My Test class/

Here I am getting 3 times
3 collin
3 collin
3 collin


Please help me how to get All values from Table (User)
All Values Like Below
1 Allen
2 Mark
3 Collin

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!