Eric, think about it in terms of your machine's processor concatenating two strings vs. a statement being sent to the database (maybe over the network), the database interpreting it, executing it, returning the results (again, possibly over the network).
Does String concatenation has any relevance in this scenario? -tom On Thu, 30 Oct 2003 21:40:49 +0100, 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 = retrieveSession().find("from " + HibernateSimpleUser.class.getName() > + " su where su.name=?", userName, Hibernate.STRING); > > 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..? > > Eric -- thomas quas | "The truth indeed has never been preached by the Buddha, [EMAIL PROTECTED] | seeing that one has to realize it within oneself." | -- Lamkara Sutra -- ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel