Re: [Hibernate] Bug in HQL?

2003-12-09 Thread Gavin King
It is "just the way things work". It needs to be this way, actually. Otherwise we could miss results when one of the other or'd conditions is satisfied. User "select distinct". Jon Anderson wrote: Not sure if this is a bug or not, so feel free to tell me to get lost! =) I have two tables, Da

[Hibernate] JUnit testing of hibernate code segments that need a datasource

2003-12-09 Thread hanasaki
Hibernate has been setup to use the data source provided by Tomcat. There are some JUnit tests that need to be run on code segments/classes that are not running inside the container. How can a Datasource and java:comp/env/jdbc be create and setup for the application outside of the container?

[Hibernate] Bug in HQL?

2003-12-09 Thread Jon Anderson
Not sure if this is a bug or not, so feel free to tell me to get lost! =) I have two tables, Data and Type. Type is a self referential table, allowing grouping of Types. (In my hibernate mapping, type_id reference is mapped as a many-to-on on method get/setSuperType ) CREATE TABLE Type (

[Hibernate] Newborn TX "Already marked for rollback"

2003-12-09 Thread Kjetil Valstadsve
Hey there. I keep getting this mysterious exception message when using hibernate 2.1rc1, MySQL 4.0 with transactions, and running it all on Red Hat Advanced Server 2.1, on a 4 CPU box. The mystery, of course, is how the transaction seems to be marked for rollback before the call to the hibernat

[Hibernate] Bug in HQL?

2003-12-09 Thread Jon Anderson
Not sure if this is a bug or not, so feel free to tell me to get lost! =) I have two tables, Data and Type. Type is a self referential table, allowing grouping of Types. (In my hibernate mapping, type_id reference is mapped as a many-to-on on method get/setSuperType ) CREATE TABLE Type (

RE: [Hibernate] AST parser for HQL

2003-12-09 Thread Joshua Davis
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

RE: [Hibernate] AST grammar for HQL

2003-12-09 Thread Joshua Davis
Okay, figred this out. Copied the implementation of QueryTranslator.createNameFor(Class) into the new parser (along with the comment about uglyness). I figured one a y'all would recognize the code and fix it up later. :D > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL P

Re: [Hibernate] AST parser for HQL

2003-12-09 Thread Max Rydahl Andersen
I'm running out my door now, so don't have much time...but just wanna say this is GREAT WORK ;) /max Joshua Davis wrote: 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 So