Re: Hibernate and SortableDataProvider

2009-01-22 Thread Frank Klein Koerkamp
Hi,

The best i think to load full objects once. And put it in an loadable
detachablemodel. In this model save id of object. Implement the load
function, this will retrieve the object from hibrnate via id. Also see
example in wicket in action.

Regards,

Frank

Verstuurd vanaf mijn iPhone

Op 23 jan 2009 om 07:17 heeft taha siddiqi tawushaf...@gmail.com
het volgende geschreven:\

 Hi everybody,

 I wonder which one is a better way of loading data into a
 DefaultDataTable

 1. using iterator() in SortableDataProvider to load all the id's of
 objects only and then using model to load actual objects
 2. loading full objects using iterator()

 regards
 Tawus

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


The information contained in this communication is confidential, intended 
solely for the use of the individual or entity to whom it is addressed and may 
be legally privileged and protected by professional secrecy. Access to this 
message by anyone else is unauthorized. If you are not the intended recipient, 
any disclosure, copying, or distribution of the message, or any action or 
omission taken by you in reliance on it is prohibited and may be unlawful. 
Please immediately contact the sender if you have received this message in 
error. This email does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written agreement 
between the intended recipient and Cordys Holding BV or its subsidiaries. 
Cordys is neither liable for the proper and complete transmission of the 
information contained in this communication nor for any delay in its receipt. 
Cordys does not guarantee that the integrity of this communication has been 
maintained nor that the communication is free of viruses, interceptions or 
interference. If you are not the intended recipient of this communication 
please return the communication to the sender and delete and destroy all copies.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Hibernate and SortableDataProvider

2009-01-22 Thread taha siddiqi
Thanks,

I had earlier used only id's but then I was thinking of shifting to this model.

On Fri, Jan 23, 2009 at 12:30 PM, Frank Klein Koerkamp
fkleinkoerk...@educator.eu wrote:
 Hi,

 The best i think to load full objects once. And put it in an loadable
 detachablemodel. In this model save id of object. Implement the load
 function, this will retrieve the object from hibrnate via id. Also see
 example in wicket in action.

 Regards,

 Frank

 Verstuurd vanaf mijn iPhone

 Op 23 jan 2009 om 07:17 heeft taha siddiqi tawushaf...@gmail.com
 het volgende geschreven:\

 Hi everybody,

 I wonder which one is a better way of loading data into a
 DefaultDataTable

 1. using iterator() in SortableDataProvider to load all the id's of
 objects only and then using model to load actual objects
 2. loading full objects using iterator()

 regards
 Tawus

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 The information contained in this communication is confidential, intended 
 solely for the use of the individual or entity to whom it is addressed and 
 may be legally privileged and protected by professional secrecy. Access to 
 this message by anyone else is unauthorized. If you are not the intended 
 recipient, any disclosure, copying, or distribution of the message, or any 
 action or omission taken by you in reliance on it is prohibited and may be 
 unlawful. Please immediately contact the sender if you have received this 
 message in error. This email does not constitute any commitment from Cordys 
 Holding BV or any of its subsidiaries except when expressly agreed in a 
 written agreement between the intended recipient and Cordys Holding BV or its 
 subsidiaries. Cordys is neither liable for the proper and complete 
 transmission of the information contained in this communication nor for any 
 delay in its receipt. Cordys does not guarantee that the integrity of this 
 communication has been maintained nor that the communication is free of 
 viruses, interceptions or interference. If you are not the intended recipient 
 of this communication please return the communication to the sender and 
 delete and destroy all copies.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org