Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Experience with creating a databinding API... hmmm... Hey, there's actually an implementation of DataView paging using criteria here: http://databinder.net/site/show/baseball-players (sorry I haven't kept up with my listserv reading) So, I wonder what could be done in terms of generic

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Please ignore my spirited reply to that old message below. Somehow Gmane (or Thunderbird?) has marked a bunch of old listserv messages as new, and it is causing me to live in the past. Nathan Hamblen wrote: Experience with creating a databinding API... hmmm... [blah blah BLAH]

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Martijn Dashorst
Oh well, I find it very good to stirr up such a discussion. In fact I think that the ejb package could be just what the doctor ordered for this in particular. javax.persistence while not the end-all-be-all of ORM, does have annotations for all conceivable relationships. This would make such

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Eelco Hillenius
On 1/9/07, Nathan Hamblen [EMAIL PROTECTED] wrote: Please ignore my spirited reply to that old message below. Somehow Gmane (or Thunderbird?) has marked a bunch of old listserv messages as new, and it is causing me to live in the past. Just 10 months ago :) Eelco

Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Yeah, I think there's a lot that can be done with ejb3/jpa, and I know that people are more comfortable with standards approved by Sun than they are with the Hibernate name. (There are some useful HibAnno relationships that didn't make it into the spec, tho.) Seems to me like validation and

Re: [Wicket-user] Hibernate paging

2005-11-21 Thread Matej Knopp
Hi, Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging. -Matej Juhani K wrote: Hi, what is recommended way to create pageable ListView for 1 database items? Is it possible to utilize Hibernate paging?

Re: [Wicket-user] Hibernate paging

2005-11-21 Thread Igor Vaynberg
examples of dataview and datatable in action are available in wicket-examples project under repeater examples-IgorOn 11/21/05, Matej Knopp [EMAIL PROTECTED] wrote:Hi,Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging.-MatejJuhani K

Re: [Wicket-user] Hibernate Paging

2005-06-06 Thread Eelco Hillenius
Thanks. I have to say that - now that I take a closer look after allmost a year - I am not particularly content with the contrib-data and contrib-hibernate packages. It works, but it could be much more elegant. It would be good to rethink the databinding from scratch, and come up with

[Wicket-user] Hibernate Paging

2005-06-03 Thread Phil Kulak
It looks like you guys have that all figured out in the contrib, but I can't seem to figure out how it's supposed to be used from just the source. Is there an example anywhere I could look at? --- This SF.Net email is sponsored by Yahoo.

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Phil Kulak
I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: Phil Kulak wrote: It looks like you guys have that all figured out in the

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Jonathan Carlson
I don't think the CD app example uses Hibernate to do the paging. If I remember right, it reads it all in and does the paging and sorting in memory but I could have missed something. - Jonathan [EMAIL PROTECTED] 2005-06-03 11:31:04 AM I look like I've figured it out anyway, but for

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Phil Kulak
Hmm... well, in any case, I've been looking at HibernateCountAndListAction and as of now it's not ready for general use (it's acutally been hardcoded to the CD demo app). If you look at getQuery(), it does a lot of string manipulation for setting the ORDER BY, which could possibly be avoided by

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Eelco Hillenius
Yes, is it does. PageableList is the the object that has the magic in it. It reads only the 'window' that it is currently in, so you don't end up with your whole database in memory. Eelco Jonathan Carlson wrote: I don't think the CD app example uses Hibernate to do the paging. If I

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Eelco Hillenius
It is meant for general use. I am not entirely happy with the pattern, though I haven't come up with a better one either. You can override it and have quite some options to customize. For example, this is from one of my projects: public final class ActivityListModel extends

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Eelco Hillenius
Phil Kulak wrote: Hmm... well, in any case, I've been looking at HibernateCountAndListAction and as of now it's not ready for general use (it's acutally been hardcoded to the CD demo app). If you look at getQuery(), it does a lot of string manipulation for setting the ORDER BY, which could

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Eelco Hillenius
Yes, that was a bug. Should be fixed now. Eelco Phil Kulak wrote: Take a look at HibernateCountAndListAction.getQuery(). It looks to me like it's been hard coded to the example query in the comment at the top of the class by putting the cd alias in there. On 6/3/05, Eelco Hillenius [EMAIL

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Phil Kulak
Here's what I came up with. It seems to work well so far. -Phil On 6/3/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yes, that was a bug. Should be fixed now. Eelco Phil Kulak wrote: Take a look at HibernateCountAndListAction.getQuery(). It looks to me like it's been hard coded to the

Re: [Wicket-user] Hibernate Paging

2005-06-03 Thread Phil Kulak
Oops, spoke too soon. I didn't have to use DetachedQueries. On 6/3/05, Phil Kulak [EMAIL PROTECTED] wrote: Here's what I came up with. It seems to work well so far. -Phil On 6/3/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yes, that was a bug. Should be fixed now. Eelco Phil