Re: [Hibernate] Performance Difference in HQL?

2003-10-31 Thread Christian Bauer
On 30 Oct (21:40), Eric Pugh wrote: If I use the second method, then I don't have to worry when I move my class around, versus the first method I have to keep the classpath up to date in the queries..? It shouldn't make any difference. [-- Attachment #2: winmail.dat --] Please stop that.

RE: [Hibernate] Performance Difference in HQL?

2003-10-31 Thread Les A. Hazlewood
, October 31, 2003 10:21 AM To: Eric Pugh Cc: [EMAIL PROTECTED] Subject: Re: [Hibernate] Performance Difference in HQL? On 30 Oct (21:40), Eric Pugh wrote: If I use the second method, then I don't have to worry when I move my class around, versus the first method I have to keep

[Hibernate] Performance Difference in HQL?

2003-10-30 Thread Eric Pugh
Hi all, Is this any faster (in a real world sense): users = retrieveSession().find(from org.apache.fulcrum.security.spi.hibernate.HibernateSimpleUser su where su.name=?, userName, Hibernate.STRING); then this: users = retrieveSession().find(from + HibernateSimpleUser.class.getName() + su where

Re: [Hibernate] Performance Difference in HQL?

2003-10-30 Thread Gavin King
No. String concatenation is very fast in Java. Eric Pugh wrote: Hi all, Is this any faster (in a real world sense): users = retrieveSession().find(from org.apache.fulcrum.security.spi.hibernate.HibernateSimpleUser su where su.name=?, userName, Hibernate.STRING); then this: users =