Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Joshua Davis
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

[Hibernate] Tools 3.0 alpha 1 and Annotations 3.0 alpha 2 released

2005-01-25 Thread Christian Bauer
http://tools.hibernate.org/ http://annotations.hibernate.org/ -- Christian Bauer callto://christian-bauer Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] http://jboss.com --- This SF.Net email is sponsored by: Intel

Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Joshua Davis
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

Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Max Rydahl Andersen
On Tue, 25 Jan 2005 12:01:27 +0100, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: addEntity is better than setEntity (which we IM'ed about), but is "add" the right word/concept for the user ? Would mapEntity, aliasEntity, bindEntity be better ? Alternatively we could mimic the DTD and have s

Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Michael Gloegl
Hi, >> It demonstrates the new SQLQuery interface, which will replace the >> horrible createSQLQuery() methods. > > It for sure looks better. I also like the look of it. > List l = s.createSQLQuery("select {org.*}, {emp.*}, emp.regionCode from > organization org left outer join employment emp on

Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Max Rydahl Andersen
On Tue, 25 Jan 2005 12:17:59 +0100, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: Inline Max Rydahl Andersen wrote: On Tue, 25 Jan 2005 09:48:20 +1100, Gavin King <[EMAIL PROTECTED]> wrote: Then there is the whole sequencing of the resulting Object[] ? I would rather have addXxx order as signif

Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Gavin King
I think I forgot to commit my test dir earlier. Try now. Joshua Davis wrote: 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.

Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Emmanuel Bernard
Inline Max Rydahl Andersen wrote: On Tue, 25 Jan 2005 09:48:20 +1100, Gavin King <[EMAIL PROTECTED]> wrote: Then there is the whole sequencing of the resulting Object[] ? I would rather have addXxx order as significant If we want to keep the strict ordering scalar-first, entities-last Why do we

Re: [Hibernate] New SQLQuery interface.

2005-01-25 Thread Max Rydahl Andersen
On Tue, 25 Jan 2005 09:48:20 +1100, Gavin King <[EMAIL PROTECTED]> wrote: Guys, please review: org.hibernate.test.sql.SQLQueryTest.testSQLQueryInterface() It demonstrates the new SQLQuery interface, which will replace the horrible createSQLQuery() methods. It for sure looks better. Let me know wh