File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes GenericUserDAO selectAll() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "GenericUserDAO selectAll() method" Watch "GenericUserDAO selectAll() method" New topic
Author

GenericUserDAO selectAll() method

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GenericUserDAO selectAll() method