Yes, the reason we do this is so it doesn't execute w/in a transaction.

On Tue, May 12, 2009 at 11:43 PM, Reza Farshi <reza.far...@gmail.com> wrote:
> hi Matt,
> In UserDaoHibernate there is a method
>
>  public String getUserPassword(String username) {
>         SimpleJdbcTemplate jdbcTemplate =
>                 new
> SimpleJdbcTemplate(SessionFactoryUtils.getDataSource(getSessionFactory()));
>         Table table = AnnotationUtils.findAnnotation(User.class,
> Table.class);
>         return jdbcTemplate.queryForObject(
>                 "select password from " + table.name() + " where
> username=?", String.class, username);
>
>     }
>
> why you use SimpleJdbcTemplate vsHibernateTemplate?is there any  technical
> reason?
> --
> Reza Farshi
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to