Re: [Hibernate] trivial error in build.xml (hibernate 3)

2004-12-16 Thread Emmanuel Bernard
I mean i *does* work fine for me with the default lib (I've pluged out my network!). What is the exact problem you face. snpe wrote: I have 3.0 dtds - I downlaod xerces source 2.4.0 from apache, compile and it work it work with jdk 1.4 without xerces , too.It doesnt' work only with your xerces I

[Hibernate] introductions of new keywords to ql

2004-12-16 Thread Alexey Loubyansky
Hi Joshua & Steve, I started working on the EJBQL syntaxes that are not supported yet. I will need to add some new keywords that might cause some existing tests to fail. E.g. adding "object" causes the following test to fail input: ->from org.hibernate.test.Bar bar where bar.object.id = ? and bar

RE: [Hibernate] introductions of new keywords to ql

2004-12-16 Thread Alexey Loubyansky
I did modify hql.g. I.e. added OBJECT token and selectClause : SELECT^ // NOTE: The '^' after a token causes the corresponding AST node to be the root of the sub-tree. (DISTINCT)? ( selectedPropertiesList | newExpression | selectObject) ; selectObject : OB

[Hibernate] hql problem - group by with many-to-one

2004-12-16 Thread snpe
Hello, I have problem with hql . class A is master and have many-to-one class B (foreign key relation) when I do hql with aggregate function and i group-list have only one column from class B it work, but when I have identifier (composite primary key) and yet anotehr column it don't work exam

Re: [Hibernate] antlr "introspection" ?

2004-12-16 Thread Joshua Davis
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

RE: [Hibernate] antlr "introspection" ?

2004-12-16 Thread Steve Ebersole
Not currently; but that's not at all hard to add. I am assuming you want to perform syntax highlighting or something like that. It's a trivial thing, but consider something like "count" which is a keyword depending upon usage. Think of a mapped entity that has a property named count, like mayb

Re: [Hibernate] antlr "introspection" ?

2004-12-16 Thread Max Rydahl Andersen
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 am assuming you want to perform syntax highlighting or something like that. yeah - thats the first step. second step is to maybe use the parser to provide code comple

Re: [Hibernate] antlr "introspection" ?

2004-12-16 Thread Joshua Davis
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 types' > > files: HqlTokenTypes.java HqlTokenTypes.txt

RE: [Hibernate] introductions of new keywords to ql

2004-12-16 Thread Joshua Davis
Aha... So you've introduced a new keyword, and also a new clause in the the select expression with the new keyword being the token that allows the parser to distinguish between the two branches. I've got some ideas about what the problem is, but I'll have to test some things out to make sure. I s

Re: [Hibernate] introductions of new keywords to ql

2004-12-16 Thread Joshua Davis
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

Re: [Hibernate] antlr "introspection" ?

2004-12-16 Thread Max Rydahl Andersen
On Wed, 15 Dec 2004 13:47:18 -0800 (PST), Joshua Davis <[EMAIL PROTECTED]> wrote: Take a look at the ANTLR generated 'token types' files: HqlTokenTypes.java HqlTokenTypes.txt. I got those, but they are kinda too atomic ;) Would be nice with something like: getTokenClass(String token) where the

Re: [Hibernate] trivial error in build.xml (hibernate 3)

2004-12-16 Thread snpe
I have 3.0 dtds - I downlaod xerces source 2.4.0 from apache, compile and it work it work with jdk 1.4 without xerces , too.It doesnt' work only with your xerces It isn't important for me anymore - i remove xerces from required libraries, but it confuse users regards On Wednesday 15 December 200

RE: [Hibernate] introductions of new keywords to ql

2004-12-16 Thread Alexey Loubyansky
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. > -Original Message- > From: Joshua Davis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 15, 2004

[Hibernate] target name="junitsingle"

2004-12-16 Thread Alexey Loubyansky
Shouldn't classpath be fixed like RCS file: /cvsroot/hibernate/Hibernate3/build.xml,v retrieving revision 1.24 diff -r1.24 build.xml 561c561,562 < --- > >

Re: [Hibernate] Why is the element required in the hibernate config (XML) file?

2004-12-16 Thread Henri Tremblay
It is possible to do it in Hibernate2 but only using the hibernate.properties. It won't work with the xml. So you need to have the .properties for your configuration and then you can add your mapping programmatically. On Thu, 16 Dec 2004 08:27:50 +0100, Max Rydahl Andersen <[EMAIL PROTECTED]> wro

Re: [Hibernate] introductions of new keywords to ql (Welcome to parser land!)

2004-12-16 Thread Joshua Davis
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