thanks

On Wed, May 13, 2009 at 7:10 PM, Matt Raible <m...@raibledesigns.com> wrote:

> 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
>
>


-- 
Reza Farshi

Reply via email to