session.createQuery("from Foo foo where foo.bar='baz' order by rand()")
.setMaxResults(1)
.uniqueResult();
rjf wrote:
How can I do something like the following, the hibernate way??
select * from foo where bar='baz' order by RAND() LIMIT 0,1;
Of course what I am doing here is selecting a sin
is already deprecated in 2.1 and replaced by
David Channon wrote:
Now what does this change (and the generalisation) mean to the DTD and all
those JCS cache
tags?
--David.
---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in
How can I do something like the following, the hibernate way??
select * from foo where bar='baz' order by RAND() LIMIT 0,1;
Of course what I am doing here is selecting a single random row (object)
Thanks,
Ron
---
This SF.Net email sponsored
I think its a good idea. Because of the new caching API it does not stop
someone using JCS
but caching is so important that an active group would be best. BTW: Like
the colors they have
picked for the logo :-).
Now what does this change (and the generalisation) mean to the DTD and all
those JCS ca
Ah, we might want to make sure that EHCache is not 1.4 only.
Josh Rehman wrote:
http://ehcache.sourceforge.net/documentation/ states "EHCache requires a
minimum of JDK1.4, because it relies on some new features of JDK1.4 to
simplify the programming."
Are you planning on having Hibernate be 1.4+ o
On 13 Nov (19:28), Sandeep Dath wrote:
> Perhaps there could also be a *little* more documentation (all supporting
> caching frameworks) on caching, and caching best practices?
On my desk and will soon be in CVS.
--
Christian Bauer
[EMAIL PROTECTED]
---
Amen to this.
Perhaps there could also be a *little* more documentation (all supporting
caching frameworks) on caching, and caching best practices?
Sandeep
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavin King
Sent: Thursday, November 13, 2003 7:18
A continuation of http://forum.hibernate.org/viewtopic.php?p=2177835#2177835
So far, I've been plugging away at making the HQL grammar using ANTLR. It's
been going well, I have the example text from sections 9.2 through 9.7 from
the HQL docos parsing and producing reasonable looking ASTs
(http:/
Greg Luck has forked JCS and created a new project on sf.net. IMO we
should replace our JCS integration with EHCache. Does anyone object to
simply removing JCS support in 2.1? I think we have all seen how there
are problems with robustness / performance in the build we are currently
using.
htt