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:/
Title: Message
rrent date' problem --
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?
Responses below
> -Original Message-
> From: Gavin King [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 17, 2003 6:50 AM
> > -- Grammar problem #1: The 'from Order order where' examples --
> >
> > Also, notice that I changed 'order' to 'ord' in many of the HQL
> > examples in the
Christian,
Thanks for the idea. Just tried it... new with any expr list, including
subqueries are parsed. The AST came out a little funny at first, but I fixed
that using a new 'CONSTRUCTOR' node type (first sub-node is the class,
subsequent nodes are the argument list).
input: ->select new Foo(c
David,
Excelent point. It looks like a design decision is required here (i.e.
portable aliases vs. proprietary pass-through). Personally, I like the idea
of portable aliases for special features, as I'm not sure how I'm going to
plug Hibernate's dialect information into the parser. It's probably
s of the 'group' analysis code would want to look at the
group sub-tree only, and not siblings.
Josh
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Monday, November 17, 2003 8:42 AM
> To: Joshu
to
solve the problem?
Josh
> -Original Message-
> From: Gavin King [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 17, 2003 9:02 AM
> To: Joshua Davis
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] Re: AST parser for HQL
>
>
> I don't think we are r
LOL! Ya know what? I had implemented this *exact
same* tranform back when I was writing a 4GL compiler
at work.
This one's easy though:
ident '('[METHOD_CALL] expr => expr '.' ident
'('[METHOD_CALL]
Especially since parens are not use for array
subscripts, like they were in the 4GL. :-P
I'll
The preprocessor approach might be redundant if I can
get the grammar to recognize the old syntax. Of
course, that's a medium sized 'if' there.
--- Gavin King <[EMAIL PROTECTED]> wrote:
> I think this is our plan. Any insurmountable
> problems with that, do you
> think?
>
> (Devils in the detai
--- "Les A. Hazlewood" <[EMAIL PROTECTED]> wrote:
> > have a prefix that indicates it should flow
> through into the resulting
> > xml
>
> I think you meant resulting sql, right? ;)
>
Errr... yeah. Did somebody say XML?
__
Do you Yahoo!?
Protect your identity wi
--- Chris Nokleberg <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 17, 2003 at 11:54:54AM -0800, Joshua
> Davis wrote:
> I suppose you could do something like
> raw "current date"
>
> So 'raw' becomes a keyword that modifies the next
> token.
Yes
It does not pose much of a problem for the grammar,
especially if the tokens are such that this can be
done with the lexer. Then it is simply a matter of
plugging in the pass through token into the grammar
where it is appropriate (e.g. as an expression
'atom').
Don't know what it means for the ba
I've checked my code into my own CVS repository on
Source Forge, in case anyone wants to have a look.
Cleaned things up a bit, the tests should run anyway.
The build depends on: ANT, ANTLR, and JUnit
[EMAIL PROTECTED]:/cvsroot/yajul
Module=hql
Web view:
http://cvs.sourceforge.net/viewcvs.py/yaj
nstrate what a
> proper translator looks like - that way I can pick up the
> other side of things (spitting out SQL) and integrate into Hibernate.
>
> I'd like to really keep moving with this - its really good
> and we need it
>
> Thanks
>
> Gavin
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Thursday, November 20, 2003 12:15 PM
> To: Joshua Davis
> Cc: 'hibernate-devel'
> Subject: Re: [Hibernate] AST grammar for HQL
>
> I sug
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Max Rydahl Andersen
> Sent: Thursday, November 20, 2003 5:24 PM
>
> If i remember the terminology correctly we will get a
> in-memory generated AST tree, right ?
Correct.
> And if we wanted we
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
>
> Well, lets get it to spit out some SQL, I suppose. I think
> the first step is to get it to translate:
>
> from Foo foo where foo.id = 1
>
> to SQL, given a mock instance of net.sf.hibernate.persister
Rydahl Andersen
> Sent: Saturday, November 22, 2003 6:38 PM
> To: 'hibernate-devel'
> Subject: Re: [Hibernate] AST grammar for HQL
>
>
> Darn - read only cvs...
>
> Can't see those files yet - not even on the viewcvs.
>
> /max
>
> Joshua Davis wrot
to:[EMAIL PROTECTED] On
> Behalf Of Joshua Davis
> Sent: Saturday, November 22, 2003 8:37 PM
> To: 'Max Rydahl Andersen'; 'hibernate-devel'
> Subject: RE: [Hibernate] AST grammar for HQL
>
>
> Max,
>
> Viewcvs can be delayed sometimes. Try 'cvs
Title: Message
Hibernate programmers,
I've made some progress with the HQL parser, so here's an
update:
Design decisions:
1) Use ANTLR to generate the parser. It has a
compatible Open Source licence, and adds only one new library
dependency.
2) Use a three phase design: parse/analyze/ge
> -Original Message-
> From: Gavin King [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 05, 2003 8:48 AM
> > BTW, Is there some interface I should use to generate the alias
> > symbols (e.g. 'bar_' in the previous example)?
>
> In the current Hibernate 2.1 CVS, this is done by
> Load
[mailto:[EMAIL PROTECTED] On
> Behalf Of Joshua Davis
> Sent: Monday, December 08, 2003 10:06 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Hibernate] AST grammar for HQL
>
>
> > -Original Message-
> > From: Gavin King [mailto:[EMAIL PROTECTED]
> > Sen
Title: Message
The following is an example of the output from
each phase when an 'implied join' is processed. The hibernate mapping
is enclosed.
Notes:
1) The 'booleanExpr=>' sub-tree is the resulting tree *after*
the analyzer has added any theta-style join clauses.
2) It does not yet a
Sounds like a good candidate for the AST based HQL parser, no?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Thursday, December 11, 2003 2:10 AM
> To: [EMAIL PROTECTED]; hibernate list
> Subject: Re: [Hibernate] new feature r
Title: Message
Question: Given a Queryable and a property name where
the property refers to a relationship to another class (i.e. the property is a
one-to-one, many-to-one):
(a) How do you tell what the cardinality of the
relationship is (i.e. how do you know which table the foriegn key live
cember 11, 2003 8:59 AM
> To: Joshua Davis; [EMAIL PROTECTED]
> Subject: Re: [Hibernate] new feature request / discussion :
> extension to select new MyClass
>
>
> Yes, but I'd rather we creep the scope *after* we got something that
> works. I know, I am a broken recor
--- Gavin King <[EMAIL PROTECTED]> wrote:
> We look at the Type of the property.
>
> Take a look at AssociationType.
>
> This is an area which is probably not as clean as it
> should be, so I
> welcome suggestions for improvements.
Thanks, will do.
__
Do you
The three phase design should make this a little
easier.
--- Gavin King <[EMAIL PROTECTED]> wrote:
> Yeah we definitely want to be able to do a lot more
> with the select
> clause. That is the weakest link at the moment.
>
> Joshua Davis wrote:
>
> > Just check
Title: Message
Hi all,
Got a bit further over the past two weeks in my AST based
HQL parser. Here's where I am so far:
* Refactored QueryTranslator into an interface so I can
compare the existing implementation to the new one.
* Made a simple unit test along with a decorator that runs
uni
Well, it's checked in but it doesn't work... yet.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Tuesday, January 06, 2004 1:07 AM
> To: Joshua Davis
> Cc: [EMAIL PROTECTED]
> S
gt; Sent: Tuesday, January 06, 2004 3:13 PM
> To: Joshua Davis
> Cc: 'Gavin King'; [EMAIL PROTECTED]
> Subject: Re: [Hibernate] AST driven QueryTranslator
>
>
> Does this help out with mapping EJBQL to HBQL?
>
> Joshua Davis wrote:
>
> > Well, it'
I don't know of any tool that would do this automagically. It might be
something you could start a project with, but after that I'm not sure how
useful such a tool would be.
Personally, I prefer using xdoclet to produce Hibernate mappings, and then
use the Hibernate mappings to produce the DDL (
ary 17, 2004 7:56 PM
> To: Joshua Davis
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] AST driven QueryTranslator
>
>
> Joshua Davis wrote:
>
> >Well, it's checked in but it doesn't work... yet.
> >
> >
> >
> Any news ? ;)
>
&g
nd error coding and debugger tracing required for me to understand some of
the data structures needed by the callers.
Max & Gavin,
You guys should be able to see it in my CVS repository now.
Josh
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
this.
* Began working on a simple 'scalar' query: "select foo.key from
org.hibernate.test.Foo as foo"
> -Original Message-
> From: Gavin King [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 29, 2004 10:53 AM
> To: Joshua Davis
> Cc: [EMAIL PROTECTED]
&g
f Of Gavin King
> Sent: Thursday, January 29, 2004 10:53 AM
> To: Joshua Davis
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] AST driven QueryTranslator
>
>
> Very cool. I checked it out, but to be honest I won't have
> time to look at it till next week (book deadline).
&
Lazy components seem redundant to me. A similar effect can be achieved by
using a one to one association (many to one, where many is one).
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Saturday, February 21, 2004 8:03 PM
> T
> -Original Message-
> From: Henri Tremblay [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 23, 2004 5:26 PM
> To: Joshua Davis; 'Gavin King'; 'hibernate-devel'
> Subject: Re: [Hibernate] Lazy components
[snip]
> That said, the benefit of having
This test is not even running becaue of a dependency in a mapping file that
can't be resolved. Anyone know where I can find
net.sf.hibern8ide.test.MonetaryAmount? Shouln't this class be defined in
the test source tree somewhere (I can't find it)?
Here is the exception:
10:45:32,433 ERROR Config
unday, March 14, 2004 12:44 PM
> To: Joshua Davis
> Cc: hibernate-devel
> Subject: Re: [Hibernate] NonReflectiveBinderTest.setup() -
> class not found
>
>
> Joshua Davis wrote:
>
> >This test is not even running becaue of a dependency in a
> mapping
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
>
> >Actually it doesn't fail The tests don't even run because the setup
> >encounters an error.
> >
> AFAIK the setup is also part of a test!?
It's part of the test case class, but it is not technically par
The ANTLR-generated code doesn't need to comply does
it?
BTW, I haven't created a directory for ANTLR generated
sources in the build directory. Instead, I have ANTLR
generating code into the source tree and *not* adding
it to version control. Should I change the build so
that the generated sourc
o:[EMAIL PROTECTED] On
> Behalf Of Max Rydahl Andersen
> Sent: Wednesday, March 17, 2004 2:54 PM
> To: Joshua Davis
> Cc: Gavin King; Emmanuel Bernard; hibernate-devel
> Subject: Re: [Hibernate] Coding conventions
>
>
> +1 for separate directory.
> e.g. build/autosrc or
Title: Message
http://www.sys-con.com/2002/PR/02252004.cfm
They list TOPLink and Weblogic as their top ORM and
J2EE container? One mention of JBoss, and *nothing* about Hibernate.
They must receive a large chunk of their advertising revenue from BEA.
Also, they probably never talked to a
Title: Message
In the
method:
public String getOnCondition(String alias,
SessionFactoryImplementor factory) throws MappingException
{ return
getJoinable(factory).queryWhereFragment(alias); }
Joinable doesn't seem to have the method
queryWhereFragment(alias) any more. However getOnCond
An update on what I've been up to so far...
* ANTLR support added: build.xml, build.bat and lib/antlr-2.7.2.jar
* Hibernate2/grammar - The ANTLR grammar source code.
* ANTLR generates source code into build/generated-src.
New packages:
* net.sf.hibernate.hql.anltr - Parser classes generated by
At best, a LOT of code. Ugliness can be left up to the developer. ;)
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Wednesday, April 28, 2004 10:22 PM
> To: Ara Abrahamian
> Cc: 'hibernate-devel'
> Subject: Re: [Hibernate] S
I had to change the classpath definition in build.bat in order to get the
ANTLR task to work. The other way to get it to work is to do what you've
done and put the ANTLR jars in the {ant.home}/lib directory. I didn't want
to change the ANT directories at the time I did it.
Six of one, half does
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
>
> Michael Gloegl wrote:
> > Hi,
> >
> >> I did an 'ant dist' on top of Hibernate3 and the
> antlr-2.7.2.jar is
> >> mandatory in the %ant_home%/lib dir, otherwise the build
> fails. Is it
> >> expected? I
May 27, 2004 7:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] ant dist of v22branch
>
>
> Oh, I forgot to use build.bat, sorry.
>
> Joshua Davis wrote:
>
> >I had to change the classpath definition in build.bat in
> order to get
> >the ANTLR task
Title: Message
I've just run the full JUnit suite on the v22branch and
there are a few failures and errors. Are these
okay?
CustomSQL test has 2 errors.
FooBarTest has a failure.
SessionCacheTest has an
error.
Okay... when did v22branch die?
I guess I have to merge all my crap back into HEAD?
--- Simon Spero <[EMAIL PROTECTED]> wrote:
> Max Rydahl Andersen wrote:
>
> > v22branch is dead - long live HEAD!
---
This SF.Net email sponsored by Black H
A few questions about Hibernate3 HEAD:
* Should Hibernate3 HEAD only compile with JDK1.5?
* test/org/hibernate/test/MultiplicityType.java doesn't seem to compile. Is
that right?
---
This SF.Net email sponsored by Black Hat Briefings & Train
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> > A few questions about Hibernate3 HEAD:
> > * Should Hibernate3 HEAD only compile with JDK1.5?
>
> No.
>
> The only jdk1.5 dependency is in hibernateext/annotation
> which is not part of hibernate core.
U
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> > On Jun 24, 2004, at 6:44 AM, Joshua Davis wrote:
>
> >> A few questions about Hibernate3 HEAD:
> >>
> >> * Should Hibernate3 HEAD only compile with JDK1.5?
I've been thinking that maybe a nightly build would be a Good Thing(TM).
Maybe I'll set up a JDK1.4 nightly build on my Linux box.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Joshua Davis
> Sent: Thursday, June 24,
Should I add the task to the build file so that I can compile with
1.4?
1) It still doesn't compile with 1.4.
2) There are still unit test failures.
I'm committing my changes anyway, as they are isolated.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
>
org.hibernate.hql and sub-packages now comply with checkstyle
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Emmanuel Bernard
> Sent: Monday, June 28, 2004 7:59 PM
> To: [EMAIL PROTECTED]
> Subject: [Hibernate] use ant checkstyle
>
>
> Please
See my comments below. (Please remember that I'm the FNG around here so my
comments might be dumb ;->).
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Aaron Knauf
> Sent: Tuesday, June 29, 2004 6:24 PM
> Subject: RE: Re[2]: [Hibernate] Check nam
Title: Message
Accidentally imported a hibernate CVS repository (forgot to
set CVS_ROOT :-/). I've already entered a support call to sourceforge to
get it deleted. Sorry for any inconvenience.
Josh
Title: Message
I've been using Spring for JTA/CMT-bound Hibernate session
management for a while now at work, and I wondered if it would make sense to add
a simple JTA-based session management facility for those of us who use Hibernate
as a cheap substitute for Entity EJBs. Spring is fine,
Did you try the example with a fully qualified class name?
Does your class 'MyClass' really have no package name?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Devel
> Sent: Friday, July 09, 2004 3:18 PM
> To: [EMAIL PROTECTED]
> Subject: [Hib
Title: Message
Hi all,
Here's an update on the Hibernate3
branch:
* Refactored HQLTest so that it executes the old
QueryTranslator to get the SQL for comparison. There have been some
minor changes in the old QueryTranslator that had made the existing, hard coded
SQL invalid.
* Cleane
Hibernate team,
I was able to get the new QueryTranslator to pass all of the examples in
HQLTest this morning, so I'm thinking of adding a few more test cases.
Let me know if any of these are deprecated or not important enough to do
right now:
1) Named parameters (e.g. :foo) - I was wondering
David,
There is no such syntax in HQL. There are other ways to declare the
intention of the program such as the locking methds and
Session.evict(object).
Josh
David Wanner wrote:
Is there a term (like READ or READ ONLY) that can be placed on a hql
query that specifies the query is just reading
FromNode.java was renamed to FromClause.java on 10/1/2004. Perhaps
your CVS client didn't delete FromNode.java for some reason?
Max Rydahl Andersen wrote:
Hi,
Is HEAD build broken at the moment ?
I get
compile:
[javac] Compiling 643 source files to
C:\work\projects\os\hibernate3\build\cla
()
does.
--- Alexey Loubyansky <[EMAIL PROTECTED]> wrote:
> Ok, thanks. I also see you have some workarounds
> using weakKeywords and
> handleIdentifierError but haven't yet figured it out
> how to fix this.
> Note, this also affects java.lang.Object.
>
> > --
o be very careful when adding keywords to the
language, as there can be many seemingly strange side effects.
Joshua Davis wrote:
You are correct, this would affect 'java.lang.Object'
because the OBJECT token is being used to branch into
the new rule.
I was going to look into modifying
Actually, the HQL parser is capable of using keywords as identifiers in
some contexts. I'm not sure what you're saying here, have you modified
the grammar and this caused HqlParserTest to fail? If that is the case
then there may be something wrong with the modified grammar that is
preventin
ding AST node to be the root of the
> sub-tree.
> (DISTINCT)? ( selectedPropertiesList |
> newExpression |
> selectObject)
> ;
>
> selectObject
>: OBJECT^ OPEN! identifier CLOSE!
>;
>
> If I comment out selectObject in selectClause, the
> test passes.
&g
Oh, I see. Perhaps I can whip something up tonight.
--- Max Rydahl Andersen <[EMAIL PROTECTED]>
wrote:
> On Wed, 15 Dec 2004 13:47:18 -0800 (PST), Joshua
> Davis <[EMAIL PROTECTED]>
> wrote:
>
> > Take a look at the ANTLR generated 'token t
Take a look at the ANTLR generated 'token types'
files: HqlTokenTypes.java HqlTokenTypes.txt.
--- Max Rydahl Andersen <[EMAIL PROTECTED]>
wrote:
> On Wed, 15 Dec 2004 12:58:06 -0600, Steve Ebersole
> <[EMAIL PROTECTED]> wrote:
>
> > Not currently; but that's not at all hard to add.
> >
> > I a
Max Rydahl Andersen wrote:
Now when we are adding EJBQL support is there a "easy" (read not to
hacky) way
of e.g. letting the parser complain if a user is actually using HQL
only syntax ?
Here are some ways to do this:
1) Add some state to the grammar (it already knows about filter vs.
non-fil
ConfigurationPerformanceTest is having a NPE every time I run it.
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Star
I'm taking a look at it now. The weakKeyword() setting may be able to
do this, but I'm not sure how much lookahead is being used after the comma.
Alexey Loubyansky wrote:
Hi Joshua,
I committed another hack in this area. Could you please look at it?
The problem is when I add an alternative to fr
N (red.blue.green) q" will parse because the
IN (path) alias rule applies only after a comma? Does that mean the
"IN (red.green.blue) q" is a join that applies to "bar b"? If so, it
seems a little strange to have a comma in there.
Joshua Davis wrote:
I'm taking a
Gavin King wrote:
This EJBQL2 query:
FROM Foo foo, IN(foo.bars) bar
Is exactly equivalent to this HQL/EJBQL3 query:
FROM Foo foo JOIN foo.bars bar
Yes, so I gathered from the grammar. It's no big deal, but the
following would be slightly 'nicer' IMHO:
FROM Foo foo IN (foo.bars) bar
The us
Try it now. :)
Gavin King wrote:
Guys, in the new query parser, some SQL functions like upper() and
max() do not work in the select clause, since they expect to be
passed the type of the expression they are applied to.
Currently MethodNode.resolve() passes null:
SQLFunction function =
getSe
Ilias Lazaridis wrote:
Who do you think you are that you force users to use a non-standard
access method to your forums?
IMHO, most user forums for popular open source products like Hibernate
have too much traffic to be useful. The forums are much more organized
than a mailing list, which allo
Steve Ebersole wrote:
[...snip...] Then we could continue to track these
objects within the scope of object identity but not in the session cache
(aka, this is analogous to TopLink's distinction between Session and
UnitOfWork).
... except better than TopLink. The TOPLink Session stores objects
The 'New tests suite' used to pass, now DynamicFilterTest has two
assertion failures. Any ideas?
---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and
Thanks!
Steve Ebersole wrote:
My fault. It is fixed now
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joshua
Davis
Sent: Thursday, January 06, 2005 8:00 AM
To: Hibernate-Devel
Subject: [Hibernate] DynamicFilterTest failures
The 'New tests suite
upper(x) and lower(x) should be handled by the 'method' syntax and
semantic actions, no?
Did you add current_date, current_time, and current_timestamp as
keywords, or as specially interpreted identifiers (i.e. semantic actions
only)?
Gavin King wrote:
Last night I wrote some code which I was k
What I'm getting at is that adding new keywords should only be added
when it's absolutely necessary. New keywords can break upward
compatibility and make it difficult to extend the language later.
Joshua Davis wrote:
upper(x) and lower(x) should be handled by the 'method'
I think that collections of non-entities is actually working now.
FooBarTest.testQuery() no longer errors, and if fails just at the end
when it is doing a very complex query. I've cleaned up the tree
parsers a bit by taking advantage of ANTLR grammar rule parameters.
This is actually what
I've just updated and I can't find the test. I'll try again. SQLTest
seems to fail becaues of a DTD validation problem as well... maybe my
classpath is incorrect.
Gavin King wrote:
Guys, please review:
org.hibernate.test.sql.SQLQueryTest.testSQLQueryInterface()
It demonstrates the new SQLQuer
Here is the error I'm getting:
org.hibernate.MappingException: Error reading resource:
org/hibernate/test/sql/Employment.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:427)
...
Caused by: org.xml.sax.SAXParseException: Attribute "class" is required
and must be spe
TypeFactory.java doesn't seem to be compiling this evening because
CustomCollectionType doesn't exist. Any ideas?
Josh
---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-d
Java handles subclasses with identically named fields differently than
some other OO languages I've used, allowing the subclass to have it's
own property. From that perspective, it would be consistent to have c
have it's own name property, but just because Java does it that way
doesn't mean t
I've put a test coverage report on 'All Tests' running with the new HQL
translator:
http://shrubbery.mynetgear.net/hibernate/clover-report/
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Produ
Title: Message
I've got a minimally working nightly build running on
my Linux box, the results should be publised to a directory at the following
URL:
http://shrubbery.mynetgear.net/hibernate
This build gets the latest code from CVS, builds it
using clover and runs the unit tests with the A
I'll make a decorator for HQLTest that uses the Oracle dialect, it shouldn't
need to actually connect to the DB and it will show the differences in SQL
generation.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Tuesday, Februa
I'll install MySQL 4.1, which should fix the ast-mysql and classic-mysql
tests.
Did someone already fix the junitinstrument target in build.xml?
> -Original Message-
> From: Gavin King [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 21, 2005 9:27 PM
> To: Joshua Davi
Max Rydahl Andersen
> Sent: Tuesday, February 22, 2005 8:10 AM
> To: Joshua Davis; 'Gavin King'
> Cc: hibernate-devel@lists.sourceforge.net
> Subject: Re: [Hibernate] Nightly build/test, with Clover analysis
>
>
> On Tue, 22 Feb 2005 08:05:19 -0500, Joshua Davis
useful than the individual scenario
coverage analysis? I'll leave it at the individual level, for now.
> -Original Message-
> From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 22, 2005 8:10 AM
> To: Joshua Davis; 'Gavin King'
> Cc: hi
Title: Message
Transforming the index operator '[ key ]' into a
join should be straightforward if hql.g is modified to keep a 'stack' of
FROM clauses, just like hql-sql.g. Then, you can access the current
FROM clause and add things to it.
-Original Message-From:
[EMAIL PR
directly added to the FROM clause in
a more straightforward manner.
> -Original Message-
> From: Gavin King [mailto:[EMAIL PROTECTED]
> Sent: Saturday, February 26, 2005 9:49 AM
> To: 'hibernate-devel@lists.sourceforge.net'; Joshua Davis
> Subject: nested joins
It seems that the theta WHERE fragments aren't being included in the SQL
tree because the FromElement has the 'useWhereFragment' flag set to false by
MethodNode.resolveCollectionProperty. This is interesting because
MethodNode.resolveCollectionProperty is the *only* place that sets this
flag. P
> -Original Message-
> From: Gavin King [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 27, 2005 1:30 PM
> To: Joshua Davis; Gavin King; hibernate-devel@lists.sourceforge.net
> Subject: RE: [Hibernate] New query parser: Almost There!
>
>
> We could easily a
1 - 100 of 106 matches
Mail list logo