Re: [Hibernate] Re: AST parser for HQL

2003-11-16 Thread David Channon
In the select clause there is the option to include the current date native function as a part of the dialect. As Joshua stated the parser looks these tokens up from the current dialect when its parsing this part of the query. Currently there is no alias. I had considered adding it but decided not

Re: [Hibernate] Re: AST parser for HQL

2003-11-16 Thread Max Rydahl Andersen
Yeah - just want to say that I'm looking very much forward to see this integrated into Hibernate...it would make it much easier for mortals to enhance/extend Hibernate with respect to HQL. Maybe we could even get a taste of the parser now ? Any src available for it ? /max David Channon wrote: Gr

RE: [Hibernate] Re: AST parser for HQL

2003-11-16 Thread Les A. Hazlewood
> I am not familiar with the 'current date' construct in this example: > "from Calendar cal where cal.holidays.maxElement > current date" > > Is 'current' a function? If so, is 'date' the argument? Is this ORACLE > specific? "current date" would need to be a Hibernate defined token. Oracl

RE: [Hibernate] Re: AST parser for HQL

2003-11-16 Thread Joshua Davis
David, Thanks for the new examples. I will get to those after I finish with the examples in the Hibernate HQL documentation. Just to be clear, this is what I will add: (1) Constructor calls with multiple arguments: > select new net.sf.hibernate.test.S(s.count, s.address) > from s in clas

Re: [Hibernate] UserType question

2003-11-16 Thread Les A. Hazlewood
> No, this is a different strategy, it's called "table per class > hierarchy", not "table per concrete subclass". Wonderful. Thanks so much for the clarification. I've been using Hibernate for quite a while now, but everything I use is a to support the underlying relational model. I've had ver

[Hibernate] TEST - please ignore

2003-11-16 Thread Joshua Davis
Title: Message  

Re: [Hibernate] Criteria.count()

2003-11-16 Thread rjf
Chris Nelson wrote: After needing and not finding the Criteria.count() method and then finding a request for it in JIRA, I went ahead and implemented it. Though there seems to Chris, funny you should write this. This morning I was lamenting the fact that I my app, which mostly uses the Criteria A

[Hibernate] Criteria.count()

2003-11-16 Thread Chris Nelson
All, After needing and not finding the Criteria.count() method and then finding a request for it in JIRA, I went ahead and implemented it. Though there seems to be some dissension about this method, not having it meant I couldn't use the Criteria API in my application, and I suspect other folks a

Re: [Hibernate] Re: Hibernate 2.1 Deadline!

2003-11-16 Thread Max Rydahl Andersen
(a) validation (b) properly laid-out JSPs (lets use Hibernate colors + logo) (c) instructions to get it running in Tomcat in <1 minute I'll do that. I've made/doing (c) ,) I've also made a build.xml and "restructured" the directory structure so it's more "clean". In that process I unfortunate

Re: [Hibernate] Re: Hibernate 2.1 Deadline!

2003-11-16 Thread Gavin King
(a) validation (b) properly laid-out JSPs (lets use Hibernate colors + logo) (c) instructions to get it running in Tomcat in <1 minute I'll do that. I did a 'lil bit of work on the jsps but my html is real hack work and you are much better at it, so you take over now ;) -- Gavin King JBoss

[Hibernate] Re: Hibernate 2.1 Deadline!

2003-11-16 Thread Christian Bauer
On 16 Nov (22:40), Gavin King wrote: > The documentation is /almost/ up to date, but there are a few loose ends > and, most importantly, we need to completely document the new > second-level cache stuff. I understand that Christian is looking into this. Yep. > (a) validation > (b) properly lai

Re: [Hibernate] Re: AST parser for HQL

2003-11-16 Thread David Channon
Great work. This will make further enhancements to the Select clause much easier. Here are a few more queries from the test package that I use to test some of the more recent (and not so well documented) changes to the select clause, eg, dialect functions. This one is not recent but affects the pa

[Hibernate] Hibernate 2.1 Deadline!

2003-11-16 Thread Gavin King
Hello Everyone :) Christian has entered Hibernate 2.1 in the Jolt Awards. What this means is that 2.1 /must/ be finished and released before 14 December. This release process has dragged out for much, much longer than expected, so we need to be a bit focussed now! The following missing pieces

Re: [Hibernate] Re: CGLIB2

2003-11-16 Thread Gavin King
OK, send me jar, I will add it to the Hibernate distribution, and then I'll be able to apply Chris' patch to Hibernate. just email it to [EMAIL PROTECTED] Thanks Bill Horsman wrote: Hi Gavin, On Sun, 2003-11-16 at 08:47, Gavin King wrote: Ah I need to check whats up with Proxool. Tell m

Re: [Hibernate] UserType question

2003-11-16 Thread Christian Bauer
On 15 Nov (21:14), Les A. Hazlewood wrote: > Are you implying I need a definition for each of the above 3 classes? > Doesn't this mean there would be 3 tables created, one for each of them? No, this is a different strategy, it's called "table per class hierarchy", not "table per concrete subcla

Re: [Hibernate] Re: CGLIB2

2003-11-16 Thread Bill Horsman
Hi Gavin, On Sun, 2003-11-16 at 08:47, Gavin King wrote: > Ah I need to check whats up with Proxool. Tell me what you need. I have patches available for Proxool and Cglib 2. I can produce a patched version of Proxool 0.8.2 for you to test with if you like. As soon as Cglib 2 is released we w

Re: [Hibernate] Re: CGLIB2

2003-11-16 Thread Gavin King
Ah I need to check whats up with Proxool. Chris Hane wrote: What was the final decision with respect to including CGLIB2 in Hibernate 2.1? Just wondering since I want to use CGLIB 2 in my application for other applications Chris -- Gavin King JBoss Group +61 410534454 http://hib

Re: [Hibernate] Re: CGLIB2

2003-11-16 Thread Chris Hane
What was the final decision with respect to including CGLIB2 in Hibernate 2.1? Just wondering since I want to use CGLIB 2 in my application for other applications Chris At 07:27 PM 10/27/2003, Gavin King wrote: Ah. hm. I am actually ready to release 2.1rc1. Just waiting on Bela's