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

2004-12-15 Thread Max Rydahl Andersen
On Wed, 15 Dec 2004 20:49:51 -0800, Safdar Kureishy <[EMAIL PROTECTED]> wrote: It is not that way in Hibernate3 anymore. I guess we could "backport" that to hibernate 2.1.8 if requested ;) Add a JIRA for 2.1.8 on changing mapping+ to mapping* in the DTD. and see what happens ;) /max Hi, I couldn

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

2004-12-15 Thread Max Rydahl Andersen
Hi, 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 ? I'm just thinking that from a user point of view it would be nice to run in a "ejb3 only" mode and be told if he crosses the li

[Hibernate] added ideas/suggestions to JIRA

2004-12-15 Thread Max Rydahl Andersen
..during and after the Neuchatel training i wrote inputs and own ideas down for making H3 even more feature complete. I've added most of these to the JIRA now, simply to not forget and let you all laugh at them ;) Peace! -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PRO

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

2004-12-15 Thread Safdar Kureishy
Hi,   I couldn’t find any discussion on this topic so am posting this to the newsgroup …   I am running into a situation where I want to initialize a Hibernate Configuration object from a hibernate cfg file, but without any mappings (i.e without any elements). Instead, I want to add th

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

2004-12-15 Thread Joshua Davis
Alexey, I've spent a little time getting your example grammar modification to work. In the tokens section, I added: // --- EJBQL keywords --- OBJECT="object"; In the rules, I added: selectClause : SELECT^// NOTE: The '^' after a token causes the corresponding AST node to be the roo

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

2004-12-15 Thread snpe
I load all h3 tree and make eclipse project (and tools eclipse console plugin) when I start build SessionFactory (with christian caveatemptor HibernateUtil or from hibernate tools plugin) I get network exception I remove xerces and mxl-apis (or set my compiled form source) and it work regards On

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

2004-12-15 Thread Emmanuel Bernard
We won't remove the parser since we want to stay compatible with the JDK 1.3 It works fine for me (don't access the web). Are you sure you use http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd and not http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in your mappings. The DTDE

[Hibernate] antlr "introspection" ?

2004-12-15 Thread Max Rydahl Andersen
Hi antlr-guys ;) Is it possible to get information about keywords, operators etc. from our new HQL parser ? something like: HQLParser.getLiterals(), HQLParser.getKeywords() etc. or maybe just a map from tokens to their type or something ? It would be a big plus for providing HQL editor suppor

RE: [Hibernate] introductions of new keywords to ql

2004-12-15 Thread Joshua Davis
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 'path' to force the token after the dot to be an identifier, no matter what it is, which is similar to what weakKeywords() does. --- Alexey