Closed GoogleCodeExporter closed 9 years ago
I found answer to my first question. Had missed the count() method in
GenericDAO class
earlier.
Any suggestion for second question.
Thanks.
-jas
Original comment by j3gre...@gmail.com
on 26 Nov 2009 at 10:26
As for the first, there is also a searchAndCount method that returns both the
results
of the search and the total count (same as count method) at once. Depending on
your situation, this might also be helpful.
And for the second, we're still relying on programmers to use %'s and ?'s.
Starts with
and ends with are something planned for the future. But I was under the
impression
that % is an SQL standard, not DB dependent. If I'm wrong on this please let me
know.
Also, the best place for a question like this is
http://groups.google.com/group/java-
generic-dao. In fact, please repost your question there and I'll copy my answer
over
as well so that people with similar questions will be able to see the thread
there in
the future. And thanks for using the framework! I hope you continue to have
success
with it. Be sure to let us know if you have any other suggestions for
improvement.
David W.
Original comment by dwolvert
on 28 Nov 2009 at 2:53
Thank you for the quick response.
I have reposted the question on java-generic-dao group.
-jas
Original comment by j3gre...@gmail.com
on 4 Dec 2009 at 1:55
Original comment by dwolvert
on 4 Dec 2009 at 3:26
Original issue reported on code.google.com by
j3gre...@gmail.com
on 26 Nov 2009 at 8:48