spkhillar / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

HibernateDAOImpl with Spring 2.5 annotations and plain Hibernate #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello again,

as of 2.5 one could think of using the 1.5 Annotations based configuration.
Also it's nowadays rather recommended to use "plain" Hibernate instead of
extending HibernateDaoSupport or injecting HibernateTemplate, see
http://blog.springsource.com/2007/06/26/so-should-you-still-use-springs-hibernat
etemplate-andor-jpatemplate/
- you won't loose the benefits as especially Spring's transaction and
exception handling, see e.g.
http://static.springframework.org/spring/docs/2.5.x/reference/orm.html#orm-hiber
nate-straight

Please find attached a modified version of your HibernateDAOImpl which
takes this under consideration. Hope it's of any use for you.

Best regards from Europe, Germany, Berlin

Karsten Gresch

PS: As one can't modify the severity level of an "issue" as well as not the
type, this post will initially appear as "Defect", which I do not intend,
of course.

Original issue reported on code.google.com by goo...@gresch.de on 15 Oct 2008 at 10:36

Attachments:

GoogleCodeExporter commented 9 years ago
Never read so many "as"-es in one post. Ups. Anyway - would be better if you 
replaced
the @Autowired annotation with @Resource (attached), sorry.

Original comment by goo...@gresch.de on 15 Oct 2008 at 10:42

Attachments:

GoogleCodeExporter commented 9 years ago
see (p.s.) in original comment.

Original comment by dwolvert on 29 Oct 2008 at 2:23

GoogleCodeExporter commented 9 years ago

Original comment by dwolvert on 29 Oct 2008 at 2:59

GoogleCodeExporter commented 9 years ago

Original comment by dwolvert on 29 Oct 2008 at 2:59

GoogleCodeExporter commented 9 years ago
Changes made for 0.3.2. Thanks Gresch.de!

Original comment by dwolvert on 10 Nov 2008 at 8:32