-
Feb 18th, 2008, 05:44 AM
#1
Autowiring class that extends JpaDaoSupport
I've annotated a class that extends JpaDaoSupport with the @Repository annotation.
How do I get that class to autowire in things like its JPATemplate or EntityManager ?
In the old days I would just get the bean to autowire by name or type.
Effectively I need to add an autowire on the setEntityManager method on the class my class extends. I can't override this method, annotate it with an autowire, and call the superclass as setEntityManager is final.
Is there any easy way of making a whole bean autowired via annotations ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules