Issue Details (XML | Word | Printable)

Key: APF-1202
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: tibi
Reporter: tibi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

appfuse:gen not fully autowired

Created: 31/May/10 07:13 AM   Updated: 01/Jun/10 10:25 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1.0-M2


 Description  « Hide
when running appfuse:gen the manager files are not fully autowired.

- add @Autowired to the constructor like this:
    /**
     * @param contentDao
     * will be pushed to super
     */
    @Autowired
    public ContentManagerImpl(final ContentDao contentDao) {
        super(contentDao);
        this.contentDao = contentDao;
    }

- change @Repository to @Repository("contentDao")
@Repository("contentDao")
public class ContentDaoHibernate extends GenericDaoHibernate<content, Long> implements ContentDao {