I've done this using t4+spring+hibernate.

This is basically what I did.

1. Take the page search/filter parameters and convert them to SimpleExpression, Criterion, and LogicalExperssion objects inside your IBasicTableModel. I have lots of search options on the page so these objects are actually arrays in my code. 2. Convert the objects from step 1 to a DetachedCriteria Object. In my code I iterated the arrays from step 1, and basically looped detachedCriteria.add(...) calls. Don't forget to add the sort order to the criteria... 3. Then I used Spring getHibernateTemplate().findByCriteria(detachedCriteria, firstPage, fetchSize);

Let me know if you need more help, I'm hoping this is enough to give you some ideas...




----- Original Message ----- From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Tuesday, March 07, 2006 4:19 AM
Subject: Hibernate Table Model


Hello there!
I guess this might have been asked before, I couldn't find on the list, so
here I go.
Does anyone has an Hibernate TableModel for the Table component? I"m kinda
confused on how to implement the getCurrentPageRows() method

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to