• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

GenericUserDAO selectAll() method

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i don't know if this is on purpose
but when you call GenericUserDAO.selectAll(int startFrom, int count)
this function will generate a List of users but not all the field will be initialized!

and that is because the query you used (in generic_qeuries.sql) is


so actual most member fields of User class will left uninitialized (such as icq , avatar, aim , yim and many more...)
maybe you should change your query so it will select everything about the user?
[originally posted on jforum.net by pavel_twr]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and i just noticed that the next method

which is called to process the data retrieved with the above query,
is completely ignores the other field mentioned before.
so even if the query changed , no effect will be taken.
[originally posted on jforum.net by pavel_twr]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's because we don't need all user field in the respective screens.

But for all purposes, JForum3 will have the full user information.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic