>
> Venturing slightly (more) off-topic, I recently switched from having
> my DAOs extend from Spring's HibernateDaoSupport, and using
> HibernateTemplate, to just going directly to the Hibernate API. Or,
> now, to the JPA API. I don't benefit from Spring's exception
> translation that way, but you know what? I don't think that really
> matters (in Hibernate 2, it was helpful, but the exceptions have are
> now unchecked). If the applications relied on Spring's DAO
> exceptions, this could make it harder to switch from Hibernate to JPA.

Just for info, simply tagging your DAO classes with @Repository makes
spring handle exception translation.

my 2 cents...

Nico.

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

Reply via email to