On 2/12/08, Rob Hills <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Not sure if Matt missed this one, or if he's been too busy to reply, but I
> wondered if anyone else knows the answer to the question below...
>
> On 11 Feb 2008 at 18:37, Rob Hills wrote:
>
> > In your UserDaoHibernate class, you have a getUserPassword method which I
> > notice manages to get the user's existing password from the DB without
> > triggering Hibernate to persist any edited user details.  I also note that
> > your UserDao class covers this method with the following annotations:
> >
> > @Transactional(propagation = Propagation.NOT_SUPPORTED)
> >
> > Is it this annotation that prevents the getUserPassword method from
> > triggering Hibernate to persist any unsaved edits to the User object, or is
> > it the fact that your query is simply returning a String (rather than a User
> > object)?

The first option is correct.

Matt

>
> Cheers,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to