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

<<attachment: winmail.dat>>

Reply via email to